[R-SIG-Mac] How to delete R session history?
sgruber at hsph.harvard.edu
Tue Jun 26 19:07:48 CEST 2012
The start-up messages in your email tell you that the workspace was restored from a file named ".RData"
and the history was restored from a file names ".Rapp.history". Both of these are in the folder "/Users/Mike/Documents".
To delete them, open a terminal window and type
> cd /Users/Mike/Documents
> rm .Rdata
> rm .Rapp.history
Alternatively, this can be done through the GUI itself.
1. Start up R as usual
2. delete everything from the workspace by choosing "Clear Workspace" under the Workspace menu item
3. make the empty workspace your new default by choosing "Save Default Workspace" (again under the Workspace menu item)
To clear the history, open the history sidebar by clicking on the history icon (to the right of the color-wheel)
1. Click on "Clear History"
2. Click on "Save History"
This will prompt for a file name. Apparently your installation is set to read the history from a file called ".Rapp.history" in your documents folder, so that is where you should save the history.
On Jun 26, 2012, at 12:45 PM, Federico Calboli wrote:
> go to your working dir, I assume that would be /Users/your_username
> ls -a
> if the file is there kill it, otherwise find the dir where you were working when you saved the session and go through the step above
> On 26 Jun 2012, at 17:31, C W wrote:
>> I accidentally saved my R session, and all my variables are saved.
>> I have,
>> [R.app GUI 1.52 (6188) x86_64-apple-darwin9.8.0]
>> [Workspace restored from /Users/Mike/Documents/.RData]
>> [History restored from /Users/Mike/Documents/.Rapp.history]
>> When I type,
>>  "alpha" "beta" "current_q" "epsilon" "f" "i"
>>  "L" "model" "Nsim" "p" "theta"
>> will always show up. Seems like it stays in the console forever, and is
>> stored in .Rapp.history. Where can I find that file?
>> [[alternative HTML version deleted]]
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
> Federico C. F. Calboli
> Neuroepidemiology and Ageing Research
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
> Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.com
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
More information about the R-SIG-Mac