| embed {renv} | R Documentation |
Use embed() to embed a compact representation of an renv lockfile
directly within a file, using use() to automatically provision an
R library when that script is run.
embed(path = NULL, ..., lockfile = NULL, project = NULL)
path |
The path to an R or R Markdown script. |
... |
Unused arguments, reserved for future expansion. If any arguments
are matched to |
lockfile |
The path to an |
project |
The project directory. If |
Using embed() is useful if you'd like to be able to share "reproducible"
R scripts – when these scripts are sourced, the generated call to
renv::use() will ensure that an R library with the requested packages
is automatically provisioned.