R.app intractable history problem
I posted a response earlier but it hasn't shown up as it's moderated... But I just wanted to mention again - in my case, even if I enter my own filename with or without dot anywhere, R.app mysteriously changes it to .Rhistory, in whatever directory I specify! I look for files with ls -al in Terminal. I've now tried installing R 2.10 and going back to R 2.7 on two computers (iMac and Macbook both running 10.5.8) and get the same behavior.
On Nov 4, 4:34?pm, Loren Engrav <eng... at u.washington.edu> wrote:
Maybe visible invisible unrelated to R.app but is interesting And I have no other ".invisible" files showing On further exploration Turns out on the Mac Pro I also have invisible .engravRhistory and this is the file being used by R.app The visible engravRhistory.Rhistory must be from long back when I was fiddling with this So I just deleted it and R history still works fine Cool, thanks
From: David Winsemius <dwinsem... at comcast.net> Date: Wed, 4 Nov 2009 17:04:14 -0500 To: Loren Engrav <eng... at u.washington.edu> Cc: "r-sig-... at stat.math.ethz.ch" <r-sig-... at stat.math.ethz.ch> Subject: Re: [R-SIG-Mac] R.app intractable history problem
On Nov 4, 2009, at 12:28 PM, Loren Engrav wrote:
I also found the R.app management of .Rhistory difficult to understand Finally gave up trying to understand and did this
In 64 bit R on Mac Pro
Checked Read history file on startup
Then entered ~/.engravRhistory in the R history file: AND HIT RETURN
(whole things fails if you do not hit return)
Checked Cleanup history entries
Now have visible file called engravRhistory.Rhistory in home folder and history loads Ok at startup
Is not pretty but am no longer fiddling with history file and losing command history
Then in 32 bit on MacBook Pro
Did same thing but here the file is named .engravRhistory and is invisible, but still works
There are several Terminal incantations that will make the default for Finder.app to display hidden files. Apparently you have your desktop machine set to one style and the other is still in the default mode.
Here's how to change it. From a Terminal window: defaults write com.apple.Finder AppleShowAllFiles YES And then restart the Finder with option-click on the Funder icon and choose relaunch. (or an alternative in the Terminal session would be to type: ? killall Finder ? ? ?)
The reverse effect is obtained by repeating with NO instead of YES.
The "hit return" after entering the path/name might be what you are missing
All assuming you have done nothing with .Rprofile
David Winsemius, MD Heritage Laboratories West Hartford, CT
_______________________________________________ R-SIG-Mac mailing list R-SIG-... at stat.math.ethz.chhttps://stat.ethz.ch/mailman/listinfo/r-sig-mac