Skip to content

How to delete R session history?

3 messages · C W, Federico Calboli, Gruber, Susan

#
go to your working dir, I assume that would be /Users/your_username

do

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

F
On 26 Jun 2012, at 17:31, C W wrote:

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20120626/ee377a91/attachment.bin>
#
Hi Mike,

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

Best regards,
Susan
On Jun 26, 2012, at 12:45 PM, Federico Calboli wrote: