Utilities for Updating R

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.


updater

R-CMD-check CRANstatus Codecov testcoverage Lifecycle:experimental

The goal of updater is to ease the R update process. The package will re-install packages available on your previous version of R into the system library of your new installation. The package uses {renv} to install the packages, adding each installation into your {renv} cache.

Importantly, the package re-installs the packages and does not copy them from the previous R installation library. R packages for minor R releases (e.g. R 4.1 to R 4.2) may not be compatible, which is why it’s important to re-install the packages and not copy them.

Usage

  1. Record location of current R system library

    • Open your current version of R (before you update), and type .libPaths() into the console. The current R system library locations will print to the console: save these file locations, e.g. copy and past the locations into Notepad or TextEdit.
    • It may be possible to skip this step and find the library location by calling find_previous_library_location() from your updated R session, but it’s recommended to use .libPaths() now to ensure accuracy. It’s likely that this function only works on Windows machines. If you are a Mac or Linux user and would like to contribute to your OS’s functionality, please file an issue on GitHub.
  2. Install R

  3. Install packages

    • Open your new version of R and install the {updater} package with install.packages("updater").
    • Run updater::install_pkgs(lib.loc = c("<location(s) saved in Step 1>")). As mentioned above, if you didn’t record the location, you may try to locate it with find_previous_library_location().

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("updater")

0.1.2 by Daniel D. Sjoberg, 3 years ago


https://github.com/ddsjoberg/updater, https://www.danieldsjoberg.com/updater/


Report a bug at https://github.com/ddsjoberg/updater/issues


Browse source code at https://github.com/cran/updater


Authors: Daniel D. Sjoberg [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, renv

Suggests covr, spelling, testthat


See at CRAN