Warning in install.packages : cannot open: HTTP status was '404 Not Found'

岁酱吖の 提交于 2019-12-12 20:36:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!