R.app intractable history problem
The 'problem' is that both R.app and R itself save the history file (based on their settings). R saves the history after R.app, so if they both have the same name it can (and has on a few occasions :-) create a problem. Hence my suggestion to Vi to change the R.app name. R.app will store the history in the file set in the preferences. Saving the workspace does not play here. All of this (saving history, preferences and optional the workspace) happens on quitting R, which is what Vi used to test. Rob
On Nov 4, 2009, at 2:34 PM, Loren Engrav 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 <dwinsemius at comcast.net> Date: Wed, 4 Nov 2009 17:04:14 -0500 To: Loren Engrav <engrav at u.washington.edu> Cc: "r-sig-mac at stat.math.ethz.ch" <r-sig-mac 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-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac