[R] .Rprofile on MacOSX
jackie.chappell at zoo.ox.ac.uk
Fri Jul 12 09:57:33 CEST 2002
I'm new to R, so apologies if the answer to my question is very obvious to
I use the carbon version of R (1.5.1), not the Darwin version. After a bit
of a battle, I'm getting to grips with using R, and really getting to like
it, but I'm still having trouble customising startup the way I'd like it.
Reading ?Startup, I see that I can specify some commands to be run when R
starts in .Rprofile. What I'd like to do is set up some project specific
directories in my home directory (for example ~/Rprojects/crows). I would
then start R, change the working directory to the chosen project folder,
then have an .Rprofile load the history and workspace specific to that
folder. I would also like to automatically save the history and workspace
when I quit, which I gather from the docs I could do with suitable commands
in .Last placed in .Rprofile. All well and good, but I don't seem to be able
to get R to pay any attention to what is in .Rprofile!
In the help entry, it says that you can have an .Rprofile in R_Home/etc/
(which doesn't exist in my installation, but didn't work when I made an /etc
subdirectory), or in ~/ which also didn't work. R starts up in
/Applications/rm151/, and I can't seem to change this. When I set R_HOME to
another directory in .Renviron, Sys.getenv() tells me that R_HOME is set as
I requested, but R still starts up in /Applications/rm151 (I think I must
have misunderstood what R_HOME does).
Any help would be much appreciated!
Dr. Jackie Chappell
Department of Zoology, South Parks Road, Oxford OX1 3PS
E-mail: jackie.chappell at zoo.ox.ac.uk, http://users.ox.ac.uk/~kgroup
Tel: +44 (0)1865 271245, Fax: +44 (0)7092 309 843
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help