最近在做生信分析需要用到 Seurat 包,在R 3.6.1 安装时出现了以下问题:
Error: package or namespace load failed for ‘Seurat’ in .doLoadActions(where, attach):
error in load action .__A__.1 for package RcppAnnoy: loadModule(module = "AnnoyAngular", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "AnnoyAngular": cannot allocate vector of size 15774.5 Gb
In addition: Warning message:
程辑包‘Seurat’是用R版本3.6.3 来建造的
安装了很久,最后将R 3.6.1 升级到更高级版本或这最新版,并用
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") BiocManager::install("Seurat")
进行 Seurat 安装
Rstudio 中R版本更新:
install.packages("installr")
library(installr)
installr()
