How to prevent objects from automatically loading when I open Rstudio

Tools -> Global options -> Restore .RData into workspace at startup (?)


If you have already made the mistake of not changing the Restore .RData into workspace at startup setting in Global options, then to start a fresh R session by canceling the session reload on Rstudio, do this

  • Go to ~/.rstudio/sessions/active
  • Remove all the active sessions rm session-4ed31304 -R

This solution works for Ubuntu. I guess the same steps can be followed for other operating systems. The only change should be in the directory where active R sessions are stored.

Tags:

R

Rstudio