Skip to contents

This function detects and installs packages listed in the renv.lock file but absent from the project-specific library. It is particularly helpful when using RStudio Job Launcher, as in some cases, packages in a renv project might be used from the library located on the server machine, which will be inaccessible to the jobs.

Usage

renv_install_missing(project = NULL)

Arguments

project

The project directory. If NULL, then the active project will be used. If no project is currently active, then the current working directory is used instead.

Examples

if (FALSE) { # \dontrun{
renv_install_missing()
} # }