hydrate: Hydrate a Project

Description Usage Arguments Details Missing Packages

Description

Discover the R packages used within a project, and then install those packages into the active library. This effectively allows you to clone the state of your system R libraries for use within a project library.

Usage

1
hydrate(packages = NULL, library = NULL, project = NULL)

Arguments

packages

The set of R packages to install. When NULL, the set of packages as reported by dependencies() is used.

library

The R library to be hydrated. When NULL, the active library as reported by .libPaths() is used.

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.

Details

hydrate() attempts to re-use packages already installed on your system, to avoid unnecessary attempts to download and install packages from CRAN. hydrate() will attempt to discover R packages from the following sources (in order):

If package is discovered in one of these locations, renv will attempt to copy or link that package into the requested library as appropriate.

Missing Packages

If renv discovers that your project depends on R packages not currently installed in your user library, then it will attempt to install those packages from CRAN.


slopp/renv documentation built on July 6, 2019, 12:08 a.m.