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 [[email protected]]
Sent: Friday, September 19, 2014 8:54 PM
To: Chen, Gang (NIH/NIMH) [C]
Cc: [email protected]
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 <[email protected]> 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
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to