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

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

    If you are using Rgui, right-click on the icon you use to start R and click on "Properties", and add --no-save to the command that starts R.

    (from http://tolstoy.newcastle.edu.au/R/help/05/03/1115.html)

    If you are using a different editor than Rgui, you have to pass --no-save to the R command line when starting R

提交回复
热议问题