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

upgrade = FALSE is ignored when options(pkg.platforms) is set #657

Open
heavywatal opened this issue Jul 1, 2024 · 0 comments
Open

upgrade = FALSE is ignored when options(pkg.platforms) is set #657

heavywatal opened this issue Jul 1, 2024 · 0 comments

Comments

@heavywatal
Copy link

Here is what happens in my current environment (roxygen2 and knitr are old; latest pak, latest R, on intel mac; sorry it may not be a reprex):

> options(pkg.platforms =  "x86_64-apple-darwin20")
> pak::pkg_install("roxygen2", upgrade = FALSE)
✔ Loading metadata database ... done

→ Will update 14 packages.
→ Will download 9 CRAN packages (1.92 MB), cached: 5 (2.75 MB).
+ R6        2.5.1  → 2.5.1   ⬇ (83.25 kB)
+ brew      1.0-10 → 1.0-10  ⬇ (73.42 kB)
+ callr     3.7.6  → 3.7.6   ⬇ (440.80 kB)
+ desc      1.4.3  → 1.4.3   ⬇ (335.23 kB)
+ evaluate  0.24.0 → 0.24.0
+ highr     0.11   → 0.11
+ knitr     1.45   → 1.47
+ lifecycle 1.0.4  → 1.0.4   ⬇ (124.76 kB)
+ pkgbuild  1.4.4  → 1.4.4   ⬇ (202.56 kB)
+ pkgload   1.4.0  → 1.4.0
+ roxygen2  7.3.1  → 7.3.2
+ rprojroot 2.0.4  → 2.0.4   ⬇ (105.91 kB)
+ stringr   1.5.1  → 1.5.1   ⬇ (313.90 kB)
+ withr     3.0.0  → 3.0.0   ⬇ (241.08 kB)

! R6, lifecycle, pkgbuild, pkgload, stringr, and withr are loaded in the current
R session, you probably need to restart R after the installation.

? Do you want to continue (Y/n) n

It works as expected when the option pkg.platforms is empty:

> options(pkg.platforms =  NULL)
> pak::pkg_install("roxygen2", upgrade = FALSE)
✔ Loading metadata database ... done

→ Will update 1 package.
→ The package (966.13 kB) is cached.
+ roxygen2 7.3.1 → 7.3.2
? Do you want to continue (Y/n) n
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