I am trying to open a library called HTSFilter. I was able to install the package without a problem using this code:
install.packages("HTSFilter")
And got this message:
package ‘HTSFilter’ successfully unpacked and MD5 sums checked
But then when I tried to open it:
library(HTSFilter)
I got this error message:
Error: package or namespace load failed for ‘HTSFilter’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘Hmisc’
What does this mean and how can I fix it?
1 answer
You're missing a dependency - the Hmisc package. Install it via install.packages("Hmisc") and try again. It should have been installed during installation of the other package, but it's possible the package authors either forgot to include it as a dependency (which shouldn't happen if it's in CRAN) or you managed to install it without dependencies.
Either way, that should fix that particular error, though you may run into additional errors for other dependencies if the latter scenario listed above is what occurred.
Log in to answer this question.