1 设置镜像
options()$repos #查看现有镜像
file.edit(file.path("~",".Rprofile")) #打开一个文件
options("repos"=c(CRAN="https://mirrors.pku.edu.cn/CRAN/","The Comprehensive R Archive Network","http://mirrors.aliyun.com/CRAN"))#写入镜像
print("已设置北大阿里云镜像")
写完后,退出,重新进入R
2 在github上下载 ArchR-master.zip
3 执行devtools::install_local("ArchR-master.zip")时,会有报错
对于这些包,采用conda安装,网址: :: Anaconda.org
4 再次执行devtools::install_local("ArchR-master.zip") ,即可安装成功