G.Maubach at weinwolf.de
2017-Feb-20 16:33 UTC
[R] packrat: Failed to download current version of foreign(0.8-67)
Hi All, I tried to use packrat on 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 other attached packages: [1] packrat_0.4.8-1 loaded via a namespace (and not attached): [1] tools_3.3.2 Due to internal firewall restrictions the package "foreign" could not be downloaded as source. I assume that the package also contains some binary parts which will be blocked by the firewall. When running packrat a directory "packrat" and a file called .Rprofile were created in the project directory. A lot of library sources were download, but not for "foreign". After finishing the process the directory "packrat" and the file .Rprofile were deleted from the project directory. Why is that? Just one source library missing and the whole directory is gone? Having all libraries for my project without just one is better than none! How can I use packrat with the missing library "foreign"? Kind regards Georg
Uwe Ligges
2017-Feb-20 20:29 UTC
[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:> Hi All, > > I tried to use packrat on > > 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 > > other attached packages: > [1] packrat_0.4.8-1 > > loaded via a namespace (and not attached): > [1] tools_3.3.2 > > Due to internal firewall restrictions the package "foreign" could not be > downloaded as source. I assume that the package also contains some binary > parts which will be blocked by the firewall. > > When running packrat a directory "packrat" and a file called .Rprofile > were created in the project directory. A lot of library sources were > download, but not for "foreign". > > After finishing the process the directory "packrat" and the file .Rprofile > were deleted from the project directory. > > Why is that? Just one source library missing and the whole directory is > gone? Having all libraries for my project without just one is better than > none! > > How can I use packrat with the missing library "foreign"? > > Kind regards > > Georg > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >
G.Maubach at weinwolf.de
2017-Feb-21 07:16 UTC
[R] 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:> Hi All, > > I tried to use packrat on > > 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 > > other attached packages: > [1] packrat_0.4.8-1 > > loaded via a namespace (and not attached): > [1] tools_3.3.2 > > Due to internal firewall restrictions the package "foreign" could not be > downloaded as source. I assume that the package also contains somebinary> parts which will be blocked by the firewall. > > When running packrat a directory "packrat" and a file called .Rprofile > were created in the project directory. A lot of library sources were > download, but not for "foreign". > > After finishing the process the directory "packrat" and the file.Rprofile> were deleted from the project directory. > > Why is that? Just one source library missing and the whole directory is > gone? Having all libraries for my project without just one is betterthan> none! > > How can I use packrat with the missing library "foreign"? > > Kind regards > > Georg > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code. >