Specific Question:
How am I supposed to use default_r_version in rstudio-prefs.json?
Context:
- I have multiple versions of R on my laptop
- I would like to be able to change which version of R is the one that RStudio uses from a script
- Since I'm using RStudio 1.3.957, it appears I can set the default value in rstudio-prefs.json
- The documentation for that value wants an object for the value, but nothing I try seems to work
Greater Question:
I'm trying to write a script that will toggle RStudio's default R version so I don't have to open it, change it, reopen it, and wait all in between. If I'm going about this the wrong way, help me find the right way.
Thank you