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. > what directory are you starting from It does not matter where I start R because on my Mac the CLI R is linked to /Library/Frameworks/R.framework/Resources/bin/R while the GUI R is linked to /Applications/R.app/Contents/MacOS/R > what does R say is the user's home directory? Did you make *any* changes to > Rprofile.site, or Renviron? > R.home() [1] "/Library/Frameworks/R.framework/Resources" > What is the output from Sys.getenv() in gui and cli, and do they differ? They differ slightly. I have trouble pinpointing the exact difference because the format is a little different and vim does not help much in tracking the differences. I just noticed that the CLI version has a few extra terms such as COLUMNS "130" ... DYLD_FALLBACK_LIBRARY_PATH "/Library/Frameworks/R.framework/Resources/lib" Thanks, Gang On Thu, Sep 18, 2014 at 7:04 PM, Amos B. Elberg <amos.elb...@gmail.com> wrote: > 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 Rprofile.site, or Renviron? > > What is the output from Sys.getenv() in gui and cli, and do they differ? > > >> On Sep 18, 2014, at 11:18 AM, Gang Chen <gangch...@gmail.com> wrote: >> >> 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 failure? >> >> Thanks, >> Gang >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.