[R] Reading outdated .Rprofile file

David Winsemius dwinsemius at comcast.net
Tue Mar 5 19:14:38 CET 2013


Preamble: There is a dedicated R-Mac-SIG list where this would have been more appropriately directed. and followups should be directed there (and the R-help address removed so we do not have two simulatnaous threads.)

On Mar 5, 2013, at 8:38 AM, Simon Kiss wrote:

> Hi there:
> I'm having a weird problem with my startup procedure. R.app is reading an unknown .Rprofile file.
> 
> First, I'm on a Mac Os 10.6.8 running R.app 2.15.0

There have been several updates to the R.app that went with R 2.15.0 that should not be at all disruptive to acquire. R.app version numbers are not in sync with R versions so that doesn't tell us what R.app you have. This is the current R.app (based on what is at the r.research.att.com website) : Mac OS X GUI rev. 6451

> 
> On startup
>> getwd()
> [1] "/Users/simon"
> 
> But: the contents of my .Rprofile file in my home directory when viewed with a text editor are:

What is your "home directory" and does your understanding agree with what you see when you use the Preferences panel from within a running version of R.app? 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Snapz Pro XScreenSnapz028.png
Type: image/png
Size: 17227 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130305/ff03470f/attachment.png>
-------------- next part --------------



I'm also running OSX 10.6.8, but R version 2.15.2 (2012-10-26) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit). Looking at the Get Info panel for the GUI I see I am also somewhat out-of-date: R.app GUI 1.53 (6335 Leopard build 64-bit).

I noticed that R 2.15.3 is now available. (I had been checking over the last several days and this is the first time I noticed that it had appeared.)



> .First<-function() {
>  	 source("/Users/simon/Documents/R/functions/trim.leading.R")
> 	source("/Users/simon/Documents/R/functions/trim.trailing.R")
>    source("/Users/simon/Documents/R/functions/trim.R")
>      source("/Users/simon/Documents/R/functions/pseudor2.R")
>    source("/Users/simon/Documents/R/functions/dates.R")
>    source("/Users/simon/Documents/R/functions/andersen.R")
>    source("/Users/simon/Documents/R/functions/tabfun.R")
> 	source("/Users/simon/Documents/R/functions/cox_snell.R")
>   	source("/Users/simon/Documents/R/functions/cor.prob.R")
>  	   	source("/Users/simon/Documents/R/functions/kmo.R")
>  	   	source("/Users/simon/Documents/R/functions/residual.stats.R")
>  	   		source("/Users/simon/Documents/R/functions/missings.plot.R")
>  	}
> 
> 
> but then, when I type .First from the command line I get
> function () 
> {
>    source("/Users/simon/Documents/R/functions/sample_size.R")
>    source("/Users/simon/Documents/R/functions/pseudor2.R")
>    source("/Users/simon/Documents/R/functions/dates.R")
>    source("/Users/simon/Documents/R/functions/andersen.R")
>    source("/Users/simon/Documents/R/functions/tabfun.R")
>    source("/Users/simon/Documents/R/functions/cox_snell.R")
>    source("/Users/simon/Documents/R/functions/cor.prob.R")
>    source("/Users/simon/Documents/R/functions/kmo.R")
> }
> 
> Needless to say, I get an error because the file sample.size.R was deleted a long time ago.
> 
> So how do I get R.app to read the updated .Rprofile file?

Could there be another .Profile file? (They are invisible by default in the MacOS using Finder.app.)

-- 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list