Hi, I'm on a Mac and am trying to install Seurat, which I have used before and never had these issues. I am trying to use Seurat 4.0.2, using this code:
remotes::install_version("Seurat", "4.0.2")
But, I am getting issues getting the SeuratObject component:
Installing 1 packages: SeuratObject Warning: dependency ‘Matrix’ is not available trying URL 'https://cran.rstudio.com/src/contrib/SeuratObject_5.0.2.tar.gz' Content type 'application/x-gzip' length 749780 bytes (732 KB)
I do have Matrix installed already (version 1.3.4, and someone I work with has this exact version that works with the exact version of Seurat I'm trying to download). It says it's trying to load "SeuratObject_5.0.2.tar.gz" and I think this could be the issue, because 5.0.2 would have it go with Seurat v5, so I'm not sure why an older version of SeuratObject is not loading when I try to install an older version of Seurat.
The end of my error looks like this:
ERROR: lazy loading failed for package ‘SeuratObject’ * removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/SeuratObject’
The downloaded source packages are in ‘/private/var/folders/ry/rg1yzt75375_hp0p6qfqqvs00000gn/T/RtmpQhVmgc/downloaded_packages’
ERROR: dependencies ‘SeuratObject’, ‘spatstat.core’ are not available for package ‘Seurat’
- removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Seurat’
Warning messages:
1: In i.p(...) : installation of package ‘SeuratObject’ had non-zero exit status
2: In i.p(...) : installation of package ‘/var/folders/ry/rg1yzt75375_hp0p6qfqqvs00000gn/T//RtmpQhVmgc/remotes47d46818af5e/Seurat’ had non-zero exit status
Is there a way to specify the exact version of SeuratObject that I want? Or how else would I go about fixing this, thanks!