init_renv | R Documentation |
Initializes renv setup by setting a predefined RStudio Package
Manager (RSPM) snapshot.
Custom RSPM Snapshots can be configured via snapshot_date
.
init_renv(snapshot_date = NULL, exclude = NULL, convenience_pkgs = FALSE)
snapshot_date |
|
exclude |
|
convenience_pkgs |
|
During the process, the latest CRAN version of renv will be installed, regardless of the chosen snapshot ID.
The heuristic for setting the correct RSPM binary repo currently only supports Windows, macOS and Ubuntu 20.04.
The initialization mostly runs in clean vanilla sessions started with
callr::r_vanilla()
.
## Not run:
init_renv()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.