satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.27k stars 910 forks source link

Error when load Seurat #7994

Closed FionaMoon closed 4 months ago

FionaMoon commented 11 months ago

Hi all, I got an error when loading Seurat. I have R4.0.3 and my Seurat is 4.0.

library(Seurat)
Error: package or namespace load failed for ‘Seurat’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘SeuratObject’
In addition: Warning message:
package ‘Seurat’ was built under R version 4.0.5 

I never met an error like this. What should I do? I've tried re-install SeuratObject and Seurat, but didn't work.

sinanugur commented 11 months ago

You should install SeuratObject.

install.packages("SeuratObject")

If this fails, perhaps try using an older version. The new version seems to crash Seurat4.

install.packages("https://cran.r-project.org/src/contrib/Archive/SeuratObject/SeuratObject_4.1.4.tar.gz",repos=NULL)
samuel-marsh commented 11 months ago

What is the error you get when trying to install SeuratObject package?

Best, Sam

igrabski commented 4 months ago

Hi, it looks like you are using old versions of both R and Seurat -- please try installing updated versions. I will close this issue now, but please feel free to open a new issue if this problem persists.