Why doesn't restarting R with Ctrl-Shift-F10 clear my environment variables?

前端 未结 1 1608
庸人自扰
庸人自扰 2021-01-12 17:06

I have RStudio working on two different machines: mine and a colleague\'s.

When I restart R in RStudio with the Ctrl-Shift-F10 shortcut, all my global

相关标签:
1条回答
  • 2021-01-12 17:52

    Disclaimer: this has 100% effectiveness based on a sample size of 5 so far (validated by OP & Badger), but I'm recording it for posterity since other forums where I've seen similar questions (example 1, example 2) don't even have that. :)

    Solution: Go to Tools / Global Options / General & change the "Save workspace to .RData on exit" dropdown option to "Never".

    Possible interpretation: Even if you chose the 'Ask' option in "Save workspace to .RData on exit", Ctrl-Shift-F10 shortcut won't ask before the session gets restarted. But unless you explicitly chose to NEVER save workspace on exit, RStudio will keep it somewhere just in case. (I'm not sure where, though. There's no .RData file in my working directory corresponding to the restored environment...)

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