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

前端 未结 11 1849
迷失自我
迷失自我 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:17

    You can create an alias for the R command:

    using bash: alias R='R --no-save'

    using csh: alias R 'R --no-save'

提交回复
热议问题