lib_upgrade | R Documentation |
lib_upgrade()
is a stopgap until pak::lib_upgrade()
https://github.com/r-lib/pak/issues/168.
Set PKG_PLATFORMS
before loading pak: https://github.com/r-lib/pak/issues/412.
There is no direct way to enforce binary for now: https://github.com/r-lib/pak/issues/318.
pak::pkg_upgrade()
is not available yet: https://github.com/r-lib/pak/pull/289.
Versioned CRAN packages are not implemented yet https://github.com/r-lib/pkgdepends/blob/main/R/type-cran.R.
old_packages()
is a thin wrapper of utils::old.packages()
.
install_packages()
is a thin wrapper of pak::pkg_install()
that can temporarily disable forced binary installation with PKG_PLATFORMS
.
lib_upgrade(..., binary = TRUE, ask = interactive())
old_packages(..., binary = TRUE, bioc = FALSE)
install_packages(pkg, lib = .libPaths()[[1L]], ..., binary = TRUE)
... |
Passed to |
binary |
A logical. Set |
ask |
Whether to ask for confirmation when installing a different version of a package that is already installed. Installations that only add new packages never require confirmation. |
bioc |
A logical. Set |
pkg |
Package names or package references. E.g.
See "Package sources" for more details. |
lib |
Package library to install the packages to. Note that all
dependent packages will be installed here, even if they are
already installed in another library. The only exceptions are base
and recommended packages installed in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.