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
• 10,430 points
303 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,040 points

Related Questions In Data Analytics

0 votes
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,040 points
565 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
• 40,460 points
449 views
0 votes
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
• 9,530 points
307 views
0 votes
1 answer
0 votes
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,040 points
398 views