One other point. If you find you need to set a system or user environment
variable then microsoft has a free tool called setx.exe that you can find here:
http://support.microsoft.com/kb/927229
You can do this from within R using system().
On 5/30/07, Gabor Grothendieck [EMAIL PROTECTED] wrote:
There is also a free program setenv.exe which is more powerful than setx.exe.
You mentioned that deleting http_proxy from your environment through the OS
would fix your problem. setenv.exe can both set and delete environment
variables and you can specify user, system, etc. See description and
-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
That was misleading advice. R is a C program and accesses the
environment via the C calls getenv and (on Windows) putenv. This is not
Windows scripting (Grothendieck's earlier reference): the C runtime
maintains only one
Thanks... I'll give it a whirl...
matt
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 10:22 AM
To: Pettis, Matthew (Thomson)
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
There is also a free
Hi,
I am trying to use R at work and at home on the same computer. At work, I have
a proxy, and at home, I do not. I have, for work, a User environment variable
http_proxy which I set in the OS (Windows XP Pro). When I am at work, and I
try to retrieve data from the web with 'read.csv',
Note that Windows XP has 4 types of environment variables and I suspect
that the problem stems from not taking that into account:
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_kmmj.mspx?mfr=true
On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I am trying to use R at
/2007 9:49 PM
To: Pettis, Matthew (Thomson)
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
Note that Windows XP has 4 types of environment variables and I suspect
that the problem stems from not taking that into account:
http://www.microsoft.com/technet
would also have no effect -- yet it does.
Any ideas?
Thanks again,
Matt
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Tue 5/29/2007 9:49 PM
To: Pettis, Matthew (Thomson)
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
5/29/2007 10:20 PM
To: Pettis, Matthew (Thomson)
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
You can have 4 different http_proxy environment variables and if you
set one type but try to unset a different type then that will have no
effect on the one you
ideas?
Thanks again,
Matt
-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED]
Sent: Tue 5/29/2007 9:49 PM
To: Pettis, Matthew (Thomson)
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] http proxies: setting and unsetting
Note that Windows XP has 4 types
On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
OK, I think I get that... do you know which namespace the Sys.setenv()
function affects? Do you know if there are functions in R that can alter the
user/system/process environment variables?
Use the R Sys.getenv() command to get the
11 matches
Mail list logo