How to prevent objects from automatically loading when I open Rstudio

后端 未结 2 941
南方客
南方客 2020-12-31 00:52

Everytime I open Rstudio I find some variables in my environment. How can I remove these once for all?

Currently, whenever I open Rstudio I run rm(list=ls(

相关标签:
2条回答
  • 2020-12-31 01:14

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

    0 讨论(0)
  • 2020-12-31 01:27

    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.

    0 讨论(0)
提交回复
热议问题