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.lockwith the one associated with the selected R Version.(optional) execution of
renv::update().(optional) execution of
renv::snapshot().