Error saying cannot open the connection when trying to install a package in R

0 votes

I'm trying to install a package in R and I'm getting this error:

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open the connection
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 1425408 != reported length 2197711
2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open compressed file 'recommenderlab/DESCRIPTION', probable reason 'No such file or directory'
Nov 26, 2018 in Data Analytics by Ali
• 11,360 points
9,215 views

1 answer to this question.

0 votes

Try

install.packages(“package_name”,  repos="http://cran.us.r-project.org")
answered Nov 26, 2018 by Maverick
• 10,840 points

Related Questions In Data Analytics

+1 vote
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
5,143 views
0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,350 points
5,113 views
+1 vote
1 answer
0 votes
1 answer

R error: when installing packages from terminal

I faced the same problem, you must set ...READ MORE

answered Dec 14, 2018 in Data Analytics by Sophie may
• 10,620 points
2,855 views
0 votes
1 answer
+1 vote
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,840 points
8,048 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP