[R-SIG-Mac] Darwin open and '--vanilla' for R.app

Simon Urbanek simon.urbanek at r-project.org
Wed Feb 27 14:40:55 CET 2013


On Feb 26, 2013, at 9:02 AM, 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...
> 
> $ 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...
> 

Because command line arguments are only supported in command line tools, and R.app is not a command line tool.

Given that this is something very obscure we don't have any plans to support this, but we may entertain a patch. Beware, though, that applications fall under different rules that command line tools, so you cannot just pass-on argv to R.

Cheers,
Simon


> 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
> 
> 



More information about the R-SIG-Mac mailing list