manifest_from_pak: Generate a TOML manifest from a 'pak' lockfile

View source: R/pak.R

manifest_from_pakR Documentation

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)

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.

Value

Path to the generated TOML file (invisibly).

Examples

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

manifesto documentation built on May 6, 2026, 1:06 a.m.