Hi everyone. I have recently installed R 2.14.1 on my 64-bit Windows 7
laptop. I am attempting to include some favourite functions in the
Rprofile.site file to run at R start-up as I did with my previous 32-bit
XP machine. I have edited the Rprofile.site file in "C:\Program
Files\R\R-2.14.1\etc\" but the added code doesn't seem to be executed
when I run R, whether through Tinn-R or independently. Any ideas please
on what's going wrong? I've searched my laptop and there is only one
Rprofile.site file. Also Sys.getenv("R_HOME") returns: [1]
"C:/PROGRA~1/R/R-214~1.1" so R should be able to find the Rprofile.site
file. Note that Rprofile.site has been modified by Tinn-R.
Many thanks
Ross Bowden
PhD Candidate, Maths Department, Murdoch University.
Execution of Rprofile.site
3 messages · Uwe Ligges, Ross Bowden
On 01.03.2012 14:39, Ross Bowden wrote:
Hi everyone. I have recently installed R 2.14.1 on my 64-bit Windows 7
laptop. I am attempting to include some favourite functions in the
Rprofile.site file to run at R start-up as I did with my previous 32-bit
XP machine. I have edited the Rprofile.site file in "C:\Program
Files\R\R-2.14.1\etc\" but the added code doesn't seem to be executed
when I run R, whether through Tinn-R or independently. Any ideas please
on what's going wrong? I've searched my laptop and there is only one
Rprofile.site file. Also Sys.getenv("R_HOME") returns: [1]
"C:/PROGRA~1/R/R-214~1.1" so R should be able to find the Rprofile.site
file. Note that Rprofile.site has been modified by Tinn-R.
Have you disabled the Rprofile.site? What makes you think code is "not executed"? Uwe Ligges
Many thanks Ross Bowden PhD Candidate, Maths Department, Murdoch University.
______________________________________________ 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.
Uwe
You ask "What makes you think code is "not executed"?". In the
Rprofile I've added "par_old<-par()" near the start and par_old is not
present when I run R. I've also included the code for a simple popup window
using tkmessageBox that doesn't appear and I try writing out one line to a
file using write.csv. The file isn't created and there are no error
massages.
Regarding "Have you disabled the Rprofile.site? ", I'm not sure what you
mean by "disabled". Why is this relevant please?
Ross
--
View this message in context: http://r.789695.n4.nabble.com/Execution-of-Rprofile-site-tp4435036p4437347.html
Sent from the R help mailing list archive at Nabble.com.