问题
I have attempted to download R package memoise
:
install.packages("memoise")
However, I have recevied the following error message:
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/memoise_0.1.zip' Warning in install.packages : cannot open: HTTP status was '404 Not Found' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/memoise_0.1.zip' Warning in install.packages : download of package ‘memoise’ failed`
I am connected to the internet and the WWW. In addition, I am connected to a work network. I am using the RStudio IDE.
Does anyone have any advice for how I troubleshoot this problem?
回答1:
as I can see there is no "memoise_0.1.zip" at http://cran.rstudio.com/bin/windows/contrib/3.0/ . However, there is the "memoise_0.2.1.zip" file.
What version of RStudio IDE are you using? Do you have memoise already installed? Maybe you should try to update the memoise package.
回答2:
I returned to this problem this morning. I restarted RStudio and tried the following again:
install.packages("memoise")
This time I received the following response:
Installing package into ‘\\oxdc/userdata/jolyon.faria/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.0/memoise_0.2.1.zip'
Content type 'application/zip' length 16813 bytes (16 Kb)
opened URL
downloaded 16 Kb
This time it (unexpectedly) 'found' the correct webpage so problem solved. Thanks for your help.
来源:https://stackoverflow.com/questions/23264519/warning-in-install-packages-cannot-open-http-status-was-404-not-found