[R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Tal Galili
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.gal...@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@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.


Re: [R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Joshua Wiley
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.gal...@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.gal...@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@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/

__
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.


Re: [R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Tal Galili
Thank you Joshua and Allan,
I tried it now, and indeed it works.

It remember for some reason that it didn't work for windows XP, was I wrong,
or did something change ?

Thanks again to the two of you.

Best,
Tal




Contact
Details:---
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
--




On Fri, Jul 2, 2010 at 11:45 AM, Joshua Wiley jwiley.ps...@gmail.comwrote:

 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.gal...@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.gal...@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@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/


[[alternative HTML version deleted]]

__
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.


Re: [R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Joshua Wiley
On Fri, Jul 2, 2010 at 2:14 AM, Tal Galili tal.gal...@gmail.com wrote:
 Thank you Joshua and Allan,
 I tried it now, and indeed it works.
 It remember for some reason that it didn't work for windows XP, was I wrong,
 or did something change ?

I just tried it out on an XP machine and it did not work.  Perhaps you
had it in quotes?  Backslashes seem to work when they are in quotes.
As a side note, I have been running the 64 bit version of R on Windows
7 for several months now and have been very happy.  I have not had any
issues with stability or anything else to make me believe it is subpar
to the 32 bit version.

Josh

 Thanks again to the two of you.
 Best,
 Tal



 Contact
 Details:---
 Contact me: tal.gal...@gmail.com |  972-52-7275845
 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
 www.r-statistics.com (English)
 --




 On Fri, Jul 2, 2010 at 11:45 AM, Joshua Wiley jwiley.ps...@gmail.com
 wrote:

 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.gal...@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.gal...@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@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/





-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
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.


Re: [R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Bert Gunter
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-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Tal Galili
Sent: Friday, July 02, 2010 12:49 AM
To: r-help@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.gal...@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@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.


Re: [R] Why doesn't my change of Renviron.site work on windows 7 ?

2010-07-02 Thread Tal Galili
Thanks Bert,
I did and it worked.


Contact
Details:---
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
--




On Fri, Jul 2, 2010 at 7:10 PM, Bert Gunter gunter.ber...@gene.com wrote:

 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-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
 On
 Behalf Of Tal Galili
 Sent: Friday, July 02, 2010 12:49 AM
 To: r-help@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.gal...@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@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.



[[alternative HTML version deleted]]

__
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.