I recently changed a statement in .Rprofile. It was to load a source file:
source("/home/theuser/olddir/myfile")
This statement is in .First <- function() of .Rprofile file.
I changed it to:
source("/home/theuser/newdir/myfile")
However, on starting R, I am getting following error message:
cannot open file '/home/theuser/olddir/myfile': No such file or directory
R still looks for old file. How can I correct this. Thanks for your help.
The .Rprofile is:
$ cat .Rprofile
options(tab.width = 2)
options(width = 130)
options(graphics.record=TRUE)
options(show.signif.stars=FALSE)
.First <- function(){
library(Hmisc)
#library(R2HTML)
source("/home/theuser/newdir/myfile")
cat("\nSuccessfully loaded .Rprofile at", date(), "\n")
}
.Last <- function(){
cat("\nGoodbye at ", date(), "\n")
}