Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading docs: install.packages() is not where ... is passed, but update() #796

Open
MichaelChirico opened this issue May 22, 2024 · 0 comments

Comments

@MichaelChirico
Copy link
Contributor

#' @param ... additional arguments passed to [utils::install.packages()].

I came across this message in my GHA logs:

Skipping install of 'ggplot2' from a cran remote, the SHA1 (3.5.1) has not changed since last install.
Use force = TRUE to force installation

And couldn't figure out where it's coming from ... what gets force= exactly?

I saw remotes::install_deps() referenced, but it doesn't have a force= argument, and ... points to install.packages(), which neither has a force= argument:

https://remotes.r-lib.org/reference/install_deps.html

Only plumbing through the code could I find out that it's the update() method that has the force= argument:

remotes/R/install.R

Lines 200 to 211 in 5b7eb08

update(
packages,
dependencies = dep_deps,
quiet = quiet,
upgrade = upgrade,
build = build,
build_opts = build_opts,
build_manual = build_manual,
build_vignettes = build_vignettes,
type = type,
repos = repos,
...

force = FALSE,

Wouldn't it be better in ?install_deps to point to the docs for update.package_deps() instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant