[R] internet proxy settings (win)
Philipp Kauer
philipp at kauer.plus.com
Wed Mar 12 21:16:50 CET 2008
Hi Thomas
maybe try the following:
1) start R with option "C:\Program Files\R\R-2.6.2\bin\Rgui.exe" --
internet2
2) disable anything in your Rprofile.site and .Rprofile to have a
clean start of R
I recently upgraded from an earlier version of R to v 2.6.2, and was
using all my old libs, and startup files, and when I tried to install
any packages I repeatedly ran into the gzfile(file,"r") error message.
1) fixed the problem I had with not being able to see any of the CRAN
mirrors, and 2) seemed to fix the gzfile issue. After I got things
working, I started adding things back into Rprofile.site
and .Rprofile. Potentially, you can skip 1) and only do 2).
Hope it works for you as well!
Philipp
On 12 Mar 2008, at 09:46, Thomas Steiner wrote:
> Thanks Liviu, I am trying out what is proposed in the mentioned
> thread.
>
> I start R by
> "C:\Program Files\R\R-2.6.2\bin\Rgui.exe"
> http_proxy="http://proxy.haifis.org:8080"
>
> Then I do the following (selecting "Austria" as mirror)
>
>> install.packages("package", method="wget")
> --- Please select a CRAN mirror for use in this session ---
> Fehler in gzfile(file, "r") : kann Verbindung nicht öffnen
> Zusätzlich: Warning message:
> In gzfile(file, "r") :
> cannot open compressed file
> 'C:\DOCUME~1\n301545\LOCALS~1\Temp\RtmpnsKQdi\file678418be', probable
> reason 'No such file or directory'
>> setwd('C:\\DOCUME~1\\n301545\\LOCALS~1\\Temp\\RtmpnsKQdi')
>> install.packages("package", method="wget")
> Fehler in gzfile(file, "r") : kann Verbindung nicht öffnen
> Zusätzlich: Warning message:
> In gzfile(file, "r") :
> cannot open compressed file
> 'C:\DOCUME~1\n301545\LOCALS~1\Temp\RtmpnsKQdi\file3d6c4ae1', probable
> reason 'No such file or directory'
>> update.packages(ask='graphics')
> Fehler: Indizierung außerhalb der Grenzen
> Zusätzlich: Warning messages:
> 1: In read.dcf(file = tmpf) : Line starting '<html> ...' is malformed!
> 2: In read.dcf(file = tmpf) : Line starting ' <head> ...' is
> malformed!
> 3: In read.dcf(file = tmpf) : Line starting '</html> ...' is
> malformed!
>> options(download.file.method="wget")
>> update.packages(ask='graphics')
> Fehler in gzfile(file, "r") : kann Verbindung nicht öffnen
> Zusätzlich: Warning message:
> In gzfile(file, "r") :
> cannot open compressed file
> 'C:\DOCUME~1\n301545\LOCALS~1\Temp\RtmpnsKQdi\file5f906952', probable
> reason 'No such file or directory'
>
> Obviously the update.packages does have access to internet, but has
> problems with the html tag. Who can help?
>
> Thomas
>
> ______________________________________________
> 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.
More information about the R-help
mailing list