代码报错
find.package("Seurat")
#"/home/ug1721/R/x86_64-pc-linux-gnu-library/4.2/Seurat"
> packageVersion("Seurat")
#‘5.0.1’
【问题处理】
前期更新了seurat包至v5,是不兼容的,需要用回4.x 的版本才行,需要指定包版本
remove.packages('Seurat')
remove.packages('SeuratObject')
install.packages('Seurat', repos = c('https://satijalab.r-universe.dev'))
【错误解决方案】
试图再安装一个V4版本,但不知道为什么library不能指定加载位置
dir.create("~/jwy/biosoft/SeuratV4")
remotes::install_version("Seurat",version = "4.3.0.1", lib = "~/jwy/biosoft/SeuratV4")
.libPaths(c("~/jwy/biosoft/SeuratV4", .libPaths()))