Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable saving history

Tags:

Is it possible to disable saving command history / session in R by default ? I really hate those .RData and .RHistory files !!

like image 385
MadSeb Avatar asked Apr 11 '12 00:04

MadSeb


People also ask

Which browser does not save history?

Chrome doesn't save your browsing history or information entered in forms. Cookies and site data are remembered while you're browsing, but deleted when you exit Incognito mode. You can choose to block third-party cookies when you open a new incognito window.


2 Answers

If you're using RStudio, you can simply disable in settings.

Go to Tools -> Global options -> General and un-tick always save history. enter image description here

like image 148
Ashrith Reddy Avatar answered Sep 24 '22 14:09

Ashrith Reddy


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).

enter image description here

like image 20
mdsumner Avatar answered Sep 26 '22 14:09

mdsumner