Tal Galili
2010-Jul-02 07:48 UTC
[R] Why doesn't my change of "Renviron.site" work on "windows 7" ?
Hi all, I added the following line on the "Renviron.site" file: R_LIBS=C:\Program Files (x86)\R\library And when I start R and run: .libPaths() I don't see this path. On windows XP it worked for me. I am now using windoes 7 (64 bit) with R 32. Is there a reason this shouldn't work? Thanks, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
Joshua Wiley
2010-Jul-02 08:45 UTC
[R] Why doesn't my change of "Renviron.site" work on "windows 7" ?
Does Sys.getenv("R_LIBS") show the path? My guess is that it has to do with this little part from ?.libPaths "Only directories which exist at the time will be included." Try entering the path you specified into R; when I do, I get an error that says Error: '\P' is an unrecognized escape in character string starting suggesting that it is your use of backslashes in the path name leading to R not recognizing the directory and .libPaths() ignoring it. I would try: R_LIBS="C:/Program Files (x86)/R/library" I also find setting environment variables in Windows to certain directories makes my life much easier. HTH, Josh On Fri, Jul 2, 2010 at 12:48 AM, Tal Galili <tal.galili at gmail.com> wrote:> Hi all, > > I added the following line on the "Renviron.site" file: > R_LIBS=C:\Program Files (x86)\R\library > > And when I start R and run: > .libPaths() > > I don't see this path. > > On windows XP it worked for me. ?I am now using windoes 7 (64 bit) with R > 32. > Is there a reason this shouldn't work? > > > Thanks, > Tal > > > > > ----------------Contact > Details:------------------------------------------------------- > Contact me: Tal.Galili at gmail.com | ?972-52-7275845 > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | > www.r-statistics.com (English) > ---------------------------------------------------------------------------------------------- > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > 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. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
Bert Gunter
2010-Jul-02 16:10 UTC
[R] Why doesn't my change of "Renviron.site" work on "windows 7" ?
I think you need to enclose the path in quotes. -- Bert Bert Gunter Nonclinical Biostatistics 467-7374 http://devo.gene.com/groups/devo/depts/ncb/home.shtml -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Tal Galili Sent: Friday, July 02, 2010 12:49 AM To: r-help at r-project.org Subject: [R] Why doesn't my change of "Renviron.site" work on "windows 7" ? Hi all, I added the following line on the "Renviron.site" file: R_LIBS=C:\Program Files (x86)\R\library And when I start R and run: .libPaths() I don't see this path. On windows XP it worked for me. I am now using windoes 7 (64 bit) with R 32. Is there a reason this shouldn't work? Thanks, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili at gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------- ------------------ [[alternative HTML version deleted]] ______________________________________________ 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.
Apparently Analagous Threads
- I am failing to run the (windows) example in: help(Startup)
- Debian Testing: ~/.Renviron seems to not being read (R_LIBS not set)
- How do you change library location ? (in R under windows XP)
- Debian Testing: ~/.Renviron seems to not being read (R_LIBS not set)
- Problem loading RGtk2 (iconv.dll)