Skip to content
Prev 367249 / 398506 Next

Antwort: Re: packrat: Failed to download current version of foreign(0.8-67)

Hi Mr. Ligges,

doing as you said R responds with

install.packages("foreign")
trying URL 
'https://cran.uni-muenster.de/bin/windows/contrib/3.3/foreign_0.8-67.zip'
Warning in install.packages :
  cannot open URL 
'https://cran.uni-muenster.de/bin/windows/contrib/3.3/foreign_0.8-67.zip': 
HTTP status was '403 Forbidden (Content blocked by Trustwave Secure Web 
Gateway)'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 
'https://cran.uni-muenster.de/bin/windows/contrib/3.3/foreign_0.8-67.zip'
Warning in install.packages :
  download of package ?foreign? failed

Running

install.packages("foreign", type = "source")
trying URL 
'https://cran.uni-muenster.de/src/contrib/foreign_0.8-67.tar.gz'
Warning in install.packages :
  cannot open URL 
'https://cran.uni-muenster.de/src/contrib/foreign_0.8-67.tar.gz': HTTP 
status was '403 Forbidden (Content blocked by Trustwave Secure Web 
Gateway)'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 
'https://cran.uni-muenster.de/src/contrib/foreign_0.8-67.tar.gz'
Warning in install.packages :
  download of package ?foreign? failed

The firewall in my company blocks all binary files. Foreign is downloaded 
in "wb" mode. Thus I have no chance to get it. The first fresh 
installation was done from an external drive. As packrat is also 
downloading the binaries instead of the source my download will always 
fail.

My sessionInfo() is
sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=German_Germany.1252 
[2] LC_CTYPE=German_Germany.1252 
[3] LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C 
[5] LC_TIME=German_Germany.1252 

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods 
[7] base 

loaded via a namespace (and not attached):
[1] tools_3.3.2

Do have a suggestion?

Kind regards

Georg





Von:    Uwe Ligges <ligges at statistik.tu-dortmund.de>
An:     G.Maubach at weinwolf.de, r-help at r-project.org, 
Datum:  20.02.2017 21:29
Betreff:        Re: [R] packrat: Failed to download current version of 
foreign(0.8-67)



foreign is a recommended package that is already part of your R 
installation. and there shoudl not be a problem to install a recent 
version of it.

What is the error message of you run
install.packages("foreign") from a new R session?

Best,
Uwe Ligges
On 20.02.2017 17:33, G.Maubach at weinwolf.de wrote:
binary
.Rprofile
than
http://www.R-project.org/posting-guide.html