[R-SIG-Mac] Darwin open and '--vanilla' for R.app
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Feb 27 12:07:50 CET 2013
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 ....
>
> 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
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
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
More information about the R-SIG-Mac
mailing list