ArchR 安装

2021-03-01  本文已影响0人  夕颜00

一、安装ArchR

if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())

library(ArchR)
ArchR::installExtraPackages()

如有问题请参阅:https://github.com/GreenleafLab/ArchR

二、会出现报错

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding

需要安装Rtools:
下载地址:https://cran.r-project.org/bin/windows/Rtools/

image.png
勾选添加 rtools 到环境变量中。
重启Rstudio

三、方法2: 适用于上述方法多次失败的情况

先从Github上下载项目到本地, 大约有262Mb

git clone https://github.com/GreenleafLab/ArchR.git

然后在 R里面进行安装

install.packages("./ArchR-master.zip",repos = NULL, type="source")
install.packages("Rtools")

接着安装一些额外包

ArchR::installExtraPackages()
如果安装失败,就手动安装 Seurat, immunogenomics/harmony, immunogenomics/presto, Cairo,shiny, shinythemes, rhandsontable

上一篇下一篇

猜你喜欢

热点阅读