takeEnvironmentSnapshot: Take a snapshot of the R environment

View source: R/EnvironmentSnapshot.R

takeEnvironmentSnapshotR Documentation

Take a snapshot of the R environment

Description

Take a snapshot of the R environment

Usage

takeEnvironmentSnapshot(rootPackage)

Arguments

rootPackage

The name of the root package

Details

This function records all versions used in the R environment that are used by one root package. This can be used for example to restore the environment to the state it was when a particular study package was run using the restoreEnvironment function.

Value

A data frame listing all the dependencies of the root package and their version numbers, in the order in which they should be installed.

Examples

snapshot <- takeEnvironmentSnapshot("OhdsiRTools")
snapshot

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