[R] Reading outdated .Rprofile file

Simon Kiss sjkiss at gmail.com
Tue Mar 5 17:38:42 CET 2013


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

On startup
 > getwd()
[1] "/Users/simon"

But: the contents of my .Rprofile file in my home directory when viewed with a text editor are:

.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?



More information about the R-help mailing list