restoreEnvironmentFromPackage: Restore environment stored in package

View source: R/EnvironmentSnapshot.R

restoreEnvironmentFromPackageR Documentation

Restore environment stored in package

Description

Restore environment stored in package

Usage

restoreEnvironmentFromPackage(
  pathToCsv = "inst/settings/rEnvironmentSnapshot.csv",
  stopOnWrongRVersion = FALSE,
  strict = FALSE,
  skipLast = TRUE
)

Arguments

pathToCsv

The path for saving the snapshot (as CSV file).

stopOnWrongRVersion

Should the function stop when the wrong version of R is installed? Else just a warning will be thrown when the version doesn't match.

strict

If TRUE, the exact version of each package will installed. If FALSE, a package will only be installed if (a) a newer version is required than currently installed, or (b) the major version number is different.

skipLast

Skip last entry in snapshot? This is usually the study package that needs to be installed manually.

Details

This function restores all packages (and package versions) described in the environment snapshot stored in the package currently being developed. The default location is inst/settings/rEnvironmentSnapshot.csv.

Examples

## Not run: 
restoreEnvironmentFromPackage()

## End(Not run)


OHDSI/OhdsiRTools documentation built on June 7, 2022, 12:20 p.m.