Warning in install.packages : cannot open: HTTP st

2019-07-19 15:58发布

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?

2条回答
Animai°情兽
2楼-- · 2019-07-19 16:43

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.

查看更多
霸刀☆藐视天下
3楼-- · 2019-07-19 16:57

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.

查看更多
登录 后发表回答