I think I did that once by accidentally placing the .Rprofile in two places. In Windows I think that was the directory that contains the R executable and in My Documents. I think you can also cause this by setting your working directory in your .Rprofile with setwd() and then it runs any .Rprofile it finds there too. Whichever way I did it, I had removed a function from one and still had the second one performing that function! That blew my mind until I found the second file. Cheers, -Bob
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Dan Tenenbaum > Sent: Friday, May 02, 2008 4:25 PM > To: r-help@r-project.org > Subject: [R] .Rprofile is being executed twice > > Hi, > > After updating to R 2.7, my .Rprofile executes twice on startup. I > confirmed this by putting in the following line: > print("starting .Rprofile...") > > When I start R, I see: > [1] "starting .Rprofile..." > [1] "starting .Rprofile..." > > This seems like the obverse of the following FAQ: > http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-did-my-_002eRprofile- > stop-working-when-I-updated-R_003f > > But in my case .Rprofile is working, just working twice as much as it > should. > > Even if there is nothing in my .Rprofile except that print() statement, > it still executes twice. > > What could be causing this? > Thanks > Dan > > ______________________________________________ > 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.