Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have downloaded a R package and installed from local files. Next I tried to install a package, with many imports, through Install package(s), I could not install. I closed R and restarted R, now I am able to install packages, with many imports. Rahul, R user.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...