Skip to content

headers argument not passed on from install_local #649

@robertdj

Description

@robertdj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions