Learn R Programming

manifesto (version 0.0.2)

manifest_from_pak: Generate a TOML manifest from a pak lockfile

Description

Reads a {pak} lockfile (JSON format) and converts it to a manifesto-style TOML manifest. Extracts package versions and the locked R version.

Usage

manifest_from_pak(lockfile = "pkg.lock", path, r_version)

Value

Path to the generated TOML file (invisibly).

Arguments

lockfile

Path to a pkg.lock JSON file created by {pak}.

path

Optional path to write the manifest. Defaults to a temporary .toml file.

r_version

Optional R version settings. Defaults to version found in lockfile.

Examples

Run this code
path <- manifest_from_pak(system.file(package = 'manifesto', 'pkg.lock'))

Run the code above in your browser using DataLab