This function provides an API for creating and modifying renv
lockfiles.
This can be useful when you'd like to programmatically generate or modify
a lockfile – for example, because you want to update or change a package
record in an existing lockfile.
Arguments
- file
The path to an existing lockfile. When no lockfile is provided, a new one will be created based on the current project context. If you want to create a blank lockfile, use
file = NA
instead.- 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.
See also
lockfiles
, for a description of the structure of an
renv
lockfile.