Re: [R] Failure with .Rprofile on Mac OS X

2014-09-19 Thread Amos B. Elberg
David - the startup directory for Terminal.app shouldn't affect where R looks for .Rprofile. If R is started from the command line, it should look in whatever is the user's current directory (which will be ~/ if Terminal was just launched), and then ~/ . It shouldn't be looking in

Re: [R] Failure with .Rprofile on Mac OS X

2014-09-19 Thread Gang Chen
Thanks for the help, Amos! The only reason that *should* happen is if there's an .Rprofile in the directory you're in when you start R. There is only one .Rprofil, which is in my home directory ~/ Where *exactly* is the .Rprofile file you want loaded The only one is in my home directory.

Re: [R] Failure with .Rprofile on Mac OS X

2014-09-19 Thread David Winsemius
Good point. I see the behavior you describe. Sent from my iPhone On Sep 19, 2014, at 1:18 AM, Amos B. Elberg amos.elb...@gmail.com wrote: David - the startup directory for Terminal.app shouldn't affect where R looks for .Rprofile. If R is started from the command line, it should look in

Re: [R] Failure with .Rprofile on Mac OS X

2014-09-19 Thread Berend Hasselman
On 18-09-2014, at 17:18, Gang Chen gangch...@gmail.com wrote: When R starts in GUI (e.g.,/Library/Frameworks/R.framework/Resources/bin/R) on my Mac OS X 10.7.5, the startup configuration in .Rprofile works fine. However, when R starts on the terminal (e.g.,

[R] Failure with .Rprofile on Mac OS X

2014-09-18 Thread Gang Chen
When R starts in GUI (e.g., /Applications/R.app/Contents/MacOS/R) on my Mac OS X 10.7.5, the startup configuration in .Rprofile works fine. However, when R starts on the terminal (e.g., /Library/Frameworks/R.framework/Resources/bin/R), it does not work at all. What could be the reason for the

Re: [R] Failure with .Rprofile on Mac OS X

2014-09-18 Thread Amos B. Elberg
The only reason that *should* happen is if there's an .Rprofile in the directory you're in when you start R. Where *exactly* is the .Rprofile file you want loaded, what directory are you starting from, and what does R say is the user's home directory? Did you make *any* changes to

Re: [R] Failure with .Rprofile on Mac OS X

2014-09-18 Thread David Winsemius
Dear Gang Chen; The .Rprofile is loaded from the startup directory. Terminal.app will start up in /Applications/ while your R.app session appears to be starting in a different directory. (We don't know what your startup directories are.) I'm using R.app in /Applications/ so my .Rprofile