LieberInstitute / spatialLIBD

Code for the spatialLIBD R/Bioconductor package and shiny app
http://LieberInstitute.github.io/spatialLIBD/
80 stars 16 forks source link

library(spatialLIBD) #16

Closed cfyy closed 3 years ago

cfyy commented 3 years ago

Hi, when I want to "library(spatialLIBD)", It occurs the message: Error: package or namespace load failed for ‘spatialLIBD’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘matrixStats’ 0.57.0 is already loaded, but >= 0.60.0 is required but I have reinstall the matrixStats packages could you please help me?

Thanks Best

lcolladotor commented 3 years ago

Hi @cfyy,

If you run packageVersion("matrixStats") you will likely still have version 0.57.0 installed. That's assuming you tried to update it on the same R session you tried to load spatialLIBD. If that's the case, then R will have loadded matrixStats, and then if you tried to install it on the same R session, that installation would fail.

It's best to install R packages on a fresh R session without having loaded any packages. For that, make sure that you don't have any environments saved, because they could contain R objects that load R packages without you noticing it.

Best, Leo

cfyy commented 3 years ago

Thank you!