Hi, I have a question regarding the R command options under Linux Is there any options that I can save history only? The only save option is --save, which saves both data and history. I don't want to save temporary data, because sometimes the it takes much time if the temp data is too big. However I want to restore the history for my next R session.. If there is no such option that meets my needs. Is there any other way to work out, such as configuration in the profile file, etc. ? Thanks a lot. alex -- View this message in context: http://www.nabble.com/save-history-only-option-under-Linux-tp23257673p23257673.html Sent from the R help mailing list archive at Nabble.com.
alex lee wrote:> > Is there any options that I can save history only? > The only save option is --save, which saves both data and history. > However I want to restore the history for my next R session.. > > If there is no such option that meets my needs. Is there any other way to > work out, such as configuration in the profile file, etc. ? >You could start R with the --no-save option, and then do a savehistory() call as the last command before you quit. -- View this message in context: http://www.nabble.com/save-history-only-option-under-Linux-tp23257673p23267977.html Sent from the R help mailing list archive at Nabble.com.
I put savehistory() in my profile file, and it works nicely. Thank you very much, jdeisenberg. alex jdeisenberg wrote:> > > alex lee wrote: >> >> Is there any options that I can save history only? >> The only save option is --save, which saves both data and history. >> However I want to restore the history for my next R session.. >> >> If there is no such option that meets my needs. Is there any other way to >> work out, such as configuration in the profile file, etc. ? >> > > You could start R with the --no-save option, and then do a savehistory() > call as the last command before you quit. >-- View this message in context: http://www.nabble.com/save-history-only-option-under-Linux-tp23257673p23276960.html Sent from the R help mailing list archive at Nabble.com.