Title: | Utilities for Updating R |
Version: | 0.1.2 |
Description: | When updating major or minor R versions all packages should be re-installed. The utilities in this package assist in getting a user up-and-running again by installing all previously installed R packages. The package uses 'renv' to install; immediately replenishing your 'renv' package cache. |
License: | MIT + file LICENSE |
URL: | https://github.com/ddsjoberg/updater, https://www.danieldsjoberg.com/updater/ |
BugReports: | https://github.com/ddsjoberg/updater/issues |
Imports: | cli (≥ 3.3.0), renv (≥ 1.0.2) |
Suggests: | covr, spelling, testthat (≥ 3.0.0) |
Config/testthat/edition: | 3 |
Encoding: | UTF-8 |
Language: | en-US |
RoxygenNote: | 7.2.3 |
NeedsCompilation: | no |
Packaged: | 2023-09-18 20:49:01 UTC; sjobergd |
Author: | Daniel D. Sjoberg |
Maintainer: | Daniel D. Sjoberg <danield.sjoberg@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2023-09-19 01:00:02 UTC |
updater: Utilities for Updating R
Description
When updating major or minor R versions all packages should be re-installed. The utilities in this package assist in getting a user up-and-running again by installing all previously installed R packages. The package uses 'renv' to install; immediately replenishing your 'renv' package cache.
Author(s)
Maintainer: Daniel D. Sjoberg danield.sjoberg@gmail.com (ORCID) [copyright holder]
See Also
Useful links:
Report bugs at https://github.com/ddsjoberg/updater/issues
Find Package Library
Description
The function searches the system paths to find the location of the
previous R version's system library location.
It is not recommended to use this function!
Rather, we recommend that a user simply opens the previous version of R
and runs .libPaths()
to find the library location(s).
Usage
find_previous_library_location()
Value
package library location
Examples
find_previous_library_location()
Re-install Packages from Previous Installation
Description
Provided the location of the previous R installation's package
library, the function will attempt to re-install each of the
packages found. Packages are installed with renv::install()
and will be added to the 'renv' package cache.
Packages can be installed from GitHub, GitLab, BioConductor, and
any repository listed in getOption("repos")
. This would typically
be from CRAN and any other secondary repositories that may be set.
Usage
install_pkgs(lib.loc = NULL)
Arguments
lib.loc |
character vector describing the location of R library trees to search through |
Examples
if (interactive()) {
install_pkgs()
}
R Versions
Description
These functions return the current R version and the the previously installed R version. The format of the returned version matches the default folder name where R is installed.
Usage
r_version()
previous_r_version()
Value
string of R version
Examples
r_version()
previous_r_version()