remotes icon indicating copy to clipboard operation
remotes copied to clipboard

headers argument not passed on from install_local

Open robertdj opened this issue 3 years ago • 0 comments

I have private packages on a CRAN where I authenticate with credentials in a header:

install.packages("<package>", headers = <header>)

According to the docs, install_local and install_deps pass their ellipsis on to install.packages. However, this fails:

remotes::install_local("<path>", headers = <header>)

Replicating some of the work of install_deps I can make a work-around:

deps = remotes::dev_package_deps(dependencies = TRUE)
missing_deps = deps[is.na(deps[["installed"]]), ]
install.packages(missing_deps[["package"]], headers = <header>)

(Pardon the Base R way of filtering, but this is in a CI pipeline where I want to keep deps to a minimum.)

I haven't looked further into why this is failing, but I would be happy to do so and make a PR if you are interested.

robertdj avatar Sep 08 '21 06:09 robertdj