cannot open the connection

Hello there,
i'm trying to install this package from R studio and i find this error... can you help me please.

install.packages("BH")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/pc/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/4.1/BH_1.78.0-0.zip'
Content type 'application/zip' length 20390200 bytes (19.4 MB)
downloaded 18.3 MB

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

You seem to be experiencing connectivity issues, the download is not completed successfully.

Try using a different repository or maybe use an https connection to the one you are currently using.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.