On Thu, Nov 5, 2009 at 2:49 AM, Gaël Laurans <glaurans@gmail.com> wrote:


> The way you quit R seems to make a difference. If you use the menu or the
> Cmd+Q shortcut, R.app will save its history in the file defined in the
> preferences, but if you type quit() at the R prompt, R.app will not save its
> history at all.
>
>
Wow, this completely solved my problem! I couldn't find this documented
anywhere, but as you said, if I quit R.app using the menu command or Cmd+Q
or the switch icon on the top right of the GUI, it writes the history file
properly. I don't even need to save the workspace anymore! But if I quit
with q(), which is what I was doing all this time before, the .Rhistory file
was always empty. I guess I was running into the problem of R always
overwriting R.app.

I still need to check into the issue of the renaming of the history file
(changing automatically from my name to ".Rhistory") but I bet it's related
to the same thing of how I quit. Rob to answer your question, I can indeed
make changes to the preferences and they ARE carried over into the next
session (as long as it's not renaming the history file). So thanks again for
all the help!
V.

	[[alternative HTML version deleted]]

