I do NOT want my global environment to clear in R on exit

后端 未结 1 626
南旧
南旧 2021-01-21 20:13

Even if I indicate \"NOT\" in a Google search, there is literally no result for this. Everybody wants to clear their global environment.

I am just starting with R so I

相关标签:
1条回答
  • 2021-01-21 20:25

    If you use RStudio, you can just set the option "Global Options" --> "Save workspace as .RData on exit" to "Always", and the environment will be saved automatically and loaded the next time you open the same project.

    AFAIK, saving to a RData file is the easiest way to save the "state" of your environment across sessions. Incidentally, if you do not want to save your objects somewhere, how can you expect to be able to retrieve them afterwards ?

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