Disable saving history
问题 Is it possible to disable saving command history / session in R by default ? I really hate those .RData and .RHistory files !! 回答1: Just start up R with --no-save . See R --help . Add this to your shortcuts (in Windows for example this is under "Target" when you right-click on the shortcut and choose properties). 回答2: If you are using an R gui, an alternative and quite nice approach, due to Brian Ripley, (see here), is to put the following lines in your 'R_HOME/etc/Rprofile.site' file: q <-