renv_switch_r_version | R Documentation |
This function switches between R versions in renv projects which follow the 'cynkra RSPM snapshot' logic. This means that each R version is tied to a specific RSPM snapshot.
The function executes the following tasks:
Replace the R Version in renv.lock
.
Replace the RSPM snapshot in renv.lock
with the one associated with the
selected R Version.
(optional) execution of renv::update()
.
(optional) execution of renv::snapshot()
.
renv_switch_r_version(version = NULL)
version |
|
TRUE (invisibly)
get_snapshots
## Not run:
renv_switch_r_version("4.0.4")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.