I’m opening an R terminal in VSCode, but relying on renv and a specific version of R I have on my PC. The current terminal loads the newest version. Easy way to change?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
One option would be to use rig to manage the different R versions on your system. When you need a specific version, use
rig default <R version>
in the command line to set the one you need to use with a specific project and change back (e.g. usingrig default release
) once you’re done.You can set the specific R executable launched in the terminal with the setting
r.rterm.windows
(orr.rterm.mac
orr.rterm.linux
as appropriate).