[R-SIG-Mac] Failure of CLI with .Rprofile on Mac OS X

Chen, Gang (NIH/NIMH) [C] gangchen at mail.nih.gov
Sat Sep 20 04:18:07 CEST 2014


For testing purpose, there is only one statement in my .Rprofile

.First <- function() source('~/test.R')

and test.R contains a few functions with which I could test whether .Rprofile has been loaded or not.

________________________________________
From: Vincent Goulet [vincent.goulet at me.com]
Sent: Friday, September 19, 2014 8:54 PM
To: Chen, Gang (NIH/NIMH) [C]
Cc: r-sig-mac at r-project.org
Subject: Re: [R-SIG-Mac] Failure of CLI with .Rprofile on Mac OS X

You left out the part where you show us what's in your .Rprofile. If there is anything in there specific to R.app (an application different from R), of course it won't work with CLI ("base") R.

Vincent Goulet
iPad

> Le 2014-09-19 à 17:01, Gang Chen <gangchen at mail.nih.gov> a écrit :
>
> When R starts in GUI on my Mac OS X 10.7.5, the startup configuration in .Rprofile works fine. However, when R starts through command line interface (CLI) on the terminal , it does not work at all.
>
> The GUI R on my Mac is aliased on the terminal to /Applications/R.app/Contents/MacOS/R while the CLI R (/usr/bin/R) is linked to /Library/Frameworks/R.framework/Resources/bin/R. There is only one .Rprofile, which resides in my home directory ~/.
>
>> sessionInfo()
> R version 3.1.0 (2014-04-10)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>
> What could be the cause for the failure with CLI?
>
> Thanks,
> Gang
>    [[alternative HTML version deleted]]
>
> _______________________________________________
> 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