Description Details [renv] [R] [R/Package/*] [Python] See Also
A lockfile records the state of a project at some point in time. In particular, this implies capturing the R packages installed (along with their versions) within the project's private library.
Projects can be restored from a lockfile using the restore()
function.
This implies re-installing packages into the project's private library,
as encoded within the lockfile.
While lockfiles are normally generated and used with snapshot()
/
restore()
, they can also hand-edited if so desired. The structure is
similar to that of the Windows-style .ini
file, with some provisioning for
nested sections.
An example lockfile follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
The sections used within a lockfile are described next.
Information about the version of renv
used to manage this project.
Version | The version of the renv package used with this project. |
Properties related to the version of R associated with this project.
Version | The version of R used. |
Repositories | The R repositories used in this project. |
Package records, related to the version of an R package that was installed at the time the lockfile was generated.
Package | The package name. |
Version | The package version. |
Library | The library this package was installed in. |
Source | The location from which this package was retrieved. |
Hash | (Optional) A unique hash for this package, used for package caching. |
Additional remote fields, further describing how the package can be retrieved from its corresponding source, will also be included as appropriate (e.g. for packages installed from GitHub).
Metadata related to the version of Python used with this project (if any).
Version | The version of Python being used. |
Type | The type of Python environment being used ("virtualenv", "conda", "system") |
Name | The (optional) name of the environment being used. |
Note that the Name
field may be empty. In that case, a project-local Python
environment will be used instead (when not directly using a system copy of Python).
Other reproducibility: restore
,
snapshot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.