On Feb 27, 2013, at 6:07 AM, Prof Brian Ripley wrote: > You are attributing documentation for R to R.app, a separate project not part > of the R sources. > > R.app calls R with arguments --no-save --no-restore --gui=aqua, and does not > pass its own arguments on. A fluent speaker of Objective C could change > this easily enough. > > On 26/02/2013 14:02, Ben Tupper wrote: >> Hi, >> >> I have a number of configurations in my .Rprofile that are run when I start >> R.app. I typically start R.app from a Terminal... > > You can only one configuration there: it is all run or not run at all. > >> $ open -a R >> >> ... which nicely reads my .Rprofile as R.app starts. >> >> On occasion I wish to enter R in the '--vanilla' state. Right now I do that >> by starting a command line version ... >> >> $ R --vanilla >> >> ... which starts a command line instance of R. That is fine except that I >> regret the loss of the nice R.app interface while I stumble around on the >> command line. So, I wonder if there is a way to start R.app in a similar >> way - that is start R.app without reading any of the user configurations. I >> have tried tricks like the following without success. >> >> $ open -a R --args '--vanilla' >> >> I don't see any hints about in the R-SIG-Mac help archives nor it here... > > Set R_PROFILE_USER to avoid your ~/.Rprofile being read: see ?Startup . I > just tried > > env R_PROFILE_USER=foo open -a R > > where '~/foo' does not exist. And similarly for other startup options .... >
Thanks so much - setting this environment variable temporarily like this does the trick. For the record, in addition to ?Startup this discussion is helpful http://tolstoy.newcastle.edu.au/R/e10/help/10/04/2926.html as well as these docs http://cran.r-project.org/doc/manuals/r-release/R-intro.html#Customizing-the-environment http://cran.r-project.org/doc/manuals/r-release/R-intro.html#Invoking-R-from-the-command-line Cheers, Ben >> >> http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#R_002eapp >> >> >> Thanks! >> Ben >> >>> sessionInfo() >> R version 2.15.2 (2012-10-26) >> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) >> >> locale: >> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >> >> attached base packages: >> [1] stats graphics grDevices utils datasets methods base >> >> >> Ben Tupper >> Bigelow Laboratory for Ocean Sciences >> 60 Bigelow Drive, P.O. Box 380 >> East Boothbay, Maine 04544 >> http://www.bigelow.org >> >> _______________________________________________ >> R-SIG-Mac mailing list >> [email protected] >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> > > > -- > Brian D. Ripley, [email protected] > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272866 (PA) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > > _______________________________________________ > R-SIG-Mac mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac Ben Tupper Bigelow Laboratory for Ocean Sciences 60 Bigelow Drive, P.O. Box 380 East Boothbay, Maine 04544 http://www.bigelow.org _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
