Keep RStudio preferences across sessions

Hello! Is there a way to have RStudio preferences (e.g. pane arrangements, themes) persist across sessions?

Hi Kene,

Since each session starts a new RStudio session, it is a little hard to do in a really elegant way. However, you can save your RStudio settings into your project directory and re-instate these settings when you open up a new session.

Once you have configured your RStudio preferences, you can save it to your project’s directory. The particular file you need to look for is: ~/.config/rstudio/rstudio-prefs.json. Copy this into your project’s directory and push it back to Renku.

Next time when you open a session, you can run cp rstudio-profs.json ~/.config/rstudio/rstudio-prefs.json in the terminal and then restart RStudio (Ctrl+Shift+F10). Your preferences should then be loaded up! The terminal might need to be closed/re-opened to see the changes.

Let us know if that works for you.


1 Like