How to disable “Save workspace image?” prompt in R?

前端 未结 11 1851
迷失自我
迷失自我 2020-11-29 23:51

When I exit the interactive R shell, it displays an annoying prompt every time:

>
>
Save workspace image? [y/n/c]: n

I\'m always answering \"no\" to it

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 00:22

    If you feel adventurous enough, you could also edit the startup section at the end of /usr/bin/R, i.e. add --no-save to the exec calls. However, if you need to save your workspace, remember to save.image().

提交回复
热议问题