Problems with installing BH package


I have been trying to install shiny package. However, I kept getting an error concerning BH package. I tried installing the package seperately with no success.
I updated my R version to the newest. However, the error keeps appearing.
Here is what I get while installing BH package:

Warning in install.packages :
downloaded length 17842176 != reported length 17880019
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

Any suggestions how to solve this problem?

I presume you're running:


Does this work for you in R, but not in RStudio? (see FAQ below for disambiguation)

This suggests that something went wrong during download of the package. Are you working somewhere with a spotty internet connection, or something similar? Perhaps you might try using a different CRAN mirror?