Re: [R] .Rprofile is being executed twice

From: Muenchen, Robert A (Bob) <muenchen_at_utk.edu>
Date: Sat, 17 May 2008 13:30:38 -0400

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: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-
> project.org] On Behalf Of Dan Tenenbaum
> Sent: Friday, May 02, 2008 4:25 PM
> To: r-help_at_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_at_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_at_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. Received on Sat 17 May 2008 - 18:26:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 17 May 2008 - 20:32:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive