Re: [R] internet proxy settings (win)

From: Philipp Kauer <philipp_at_kauer.plus.com>
Date: Wed, 12 Mar 2008 20:16:50 +0000

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.



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. Received on Wed 12 Mar 2008 - 20:35:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Mar 2008 - 13:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive