Re: [R] http proxies: setting and unsetting

2007-05-30 Thread Gabor Grothendieck
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:

Re: [R] http proxies: setting and unsetting

2007-05-30 Thread Gabor Grothendieck
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

Re: [R] http proxies: setting and unsetting

2007-05-30 Thread matt.pettis
-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

Re: [R] http proxies: setting and unsetting

2007-05-30 Thread matt.pettis
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

[R] http proxies: setting and unsetting

2007-05-29 Thread matt.pettis
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',

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread Gabor Grothendieck
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

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread matt.pettis
/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

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread Gabor Grothendieck
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

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread matt.pettis
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

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread Prof Brian Ripley
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

Re: [R] http proxies: setting and unsetting

2007-05-29 Thread Gabor Grothendieck
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