Hi I can't get R to connect to the internet. I am running R 1.7.1 on Windows XP and whenever I try to download packages etc from within R using the internet, it fails. OK so I am behind a firewall and use a proxy server.... SO, if I go to my MS-DOS prompt and type: RGui.exe --internet2 everything works.... BUT i can't set up a shortcut for this as Windows (I hate Windows) complains that RGui.exe --internet2 is invalid and won't save it So do I have to go into MS-DOS everytime I want to start up R??? Thanks Mick
Dear Mick, Have you tried to change the properties of your shortcut (right-click on the shortcut); add "--internet2" for the target (works at least on W2K). If that fails, create a small *.bat file, containing the line \yourpath\Rgui --internet2 and probably, before executing this, insert the line cd \yourHome HTH Thomas --- Thomas Hotz Research Associate in Medical Statistics University of Leicester United Kingdom Department of Epidemiology and Public Health 22-28 Princess Road West Leicester LE1 6TP Tel +44 116 252-5410 Fax +44 116 252-5423 Division of Medicine for the Elderly Department of Medicine The Glenfield Hospital Leicester LE3 9QP Tel +44 116 256-3643 Fax +44 116 232-2976> -----Original Message----- > From: michael watson (IAH-C) [mailto:michael.watson at bbsrc.ac.uk] > Sent: 18 July 2003 10:32 > To: R-help at stat.math.ethz.ch > Subject: [R] R won't connect to the internet > > > Hi > > I can't get R to connect to the internet. I am running R > 1.7.1 on Windows XP and whenever I try to download packages > etc from within R using the internet, it fails. > > OK so I am behind a firewall and use a proxy server.... > > SO, if I go to my MS-DOS prompt and type: > > RGui.exe --internet2 > > everything works.... > > BUT i can't set up a shortcut for this as Windows (I hate > Windows) complains that RGui.exe --internet2 is invalid and > won't save it > > So do I have to go into MS-DOS everytime I want to start up R??? > > Thanks > Mick > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
On Fri, 18 Jul 2003, michael watson (IAH-C) wrote:> I can't get R to connect to the internet. I am running R 1.7.1 on > Windows XP and whenever I try to download packages etc from within R > using the internet, it fails. > > OK so I am behind a firewall and use a proxy server.... > > SO, if I go to my MS-DOS prompt and type: > > RGui.exe --internet2 > > everything works.... > > BUT i can't set up a shortcut for this as Windows (I hate Windows) > complains that RGui.exe --internet2 is invalid and won't save itPlease ask someone who has a lesser aversion to your operating system (if you hate it, why use it?) to show you how to make a shortcut. It can be done, but you do need to give the full path to the executable in the Target field, and you may need quotes in the correct places. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
I also have used R1.7.1 behind a proxy server. I've not used the --internet2 flag - I've not found that necessary. Simply set up an environment variable in you control panel system properties called "http_proxy" and set it value to something like "http://100.100.100.100:8080/". Everything should work as normal for the standard installation of R. If your proxy requires authorisation, a dialog box will pop up and ask you to type in your userid and password - this seems be remembered, so you don't need to type it very often. Regards, John Marsland> -----Original Message----- > From: michael watson (IAH-C) [mailto:michael.watson at bbsrc.ac.uk] > Sent: 18 July 2003 10:32 > To: R-help at stat.math.ethz.ch > Subject: [R] R won't connect to the internet > > > Hi > > I can't get R to connect to the internet. I am running R > 1.7.1 on Windows XP and whenever I try to download packages > etc from within R using the internet, it fails. > > OK so I am behind a firewall and use a proxy server.... > > SO, if I go to my MS-DOS prompt and type: > > RGui.exe --internet2 > > everything works.... > > BUT i can't set up a shortcut for this as Windows (I hate > Windows) complains that RGui.exe --internet2 is invalid and > won't save it > > So do I have to go into MS-DOS everytime I want to start up R??? > > Thanks > Mick > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >********************************************************************** This is a commercial communication from Commerzbank AG.\ \ T...{{dropped}}
I have had a play with the --internet2 flag under windows NT and XP if you set the target on your shortcut to: "C:\Program Files\R\rw1071\bin\Rgui.exe" --internet2 it should work. I think your problem is to do with the placement of the quote marks - it's a wonderfully horrible idea to be able to put spaces in filenames... Regards, John> -----Original Message----- > From: michael watson (IAH-C) [mailto:michael.watson at bbsrc.ac.uk] > Sent: 18 July 2003 10:32 > To: R-help at stat.math.ethz.ch > Subject: [R] R won't connect to the internet > > > Hi > > I can't get R to connect to the internet. I am running R > 1.7.1 on Windows XP and whenever I try to download packages > etc from within R using the internet, it fails. > > OK so I am behind a firewall and use a proxy server.... > > SO, if I go to my MS-DOS prompt and type: > > RGui.exe --internet2 > > everything works.... > > BUT i can't set up a shortcut for this as Windows (I hate > Windows) complains that RGui.exe --internet2 is invalid and > won't save it > > So do I have to go into MS-DOS everytime I want to start up R??? > > Thanks > Mick > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >********************************************************************** This is a commercial communication from Commerzbank AG.\ \ T...{{dropped}}