R - Unable to install R packages - Cannot open the connection

て烟熏妆下的殇ゞ 提交于 2020-05-04 05:36:08

问题


Before you mark this as duplicate, I wish to say that I already referred the related post 1,post 2, 3, 4

I am trying to install the dplyr and stringr package but i get the below error

Warning in install.packages :
  downloaded length 139264 != reported length 3227450
Warning in install.packages :
  error 1 in extracting from zip file
Warning in install.packages :
  cannot open compressed file 'dplyr/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection

I tried different installation commands like

install.packages(“dplyr”)
install.packages(“dplyr”,  repos="http://cran.us.r-project.org")
install.packages(“dplyr”,  repos="http://cran.us.r-project.org",type="win.binary")

> Sys.info()
       sysname        release        version         machine 
     "Windows"       "10 x64"  "build 17134"        "x86-64" 
> version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          6.2                         
year           2019                        
month          12                          
day            12                          
svn rev        77560                       
language       R                           
version.string R version 3.6.2 (2019-12-12)
nickname       Dark and Stormy Night 

Till yesterday, I was able to install this package successfully. But today it is throwing this error.

This error happens with other packages like stringr as well. I tried chaging CRAN mirrors as well but still no help

Can help please?

来源:https://stackoverflow.com/questions/61200536/r-unable-to-install-r-packages-cannot-open-the-connection

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