问题遇到的现象和发生背景
您好,我在您的教程“使用ArchR分析单细胞ATAC-seq数据(第一章)(https://blog.csdn.net/u012110870/article/details/106328674)”下载安装ArchR,我的R环境是配置在anaconda环境中的,按照您所说的,下载好了devtools和Bio,然后在下载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())
Downloading GitHub repo GreenleafLab/ArchR@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/GreenleafLab/ArchR/tarball/master' failed
> devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())
Error: Failed to install 'ArchR' from GitHub:
Timeout was reached: [api.github.com] Proxy CONNECT aborted due to timeout
> options("repos"=c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
> devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())
Downloading GitHub repo GreenleafLab/ArchR@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/GreenleafLab/ArchR/tarball/master' failed
> Sys.setenv(CONDA_BUILD_SYSROOT="/")
> devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())
Downloading GitHub repo GreenleafLab/ArchR@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/GreenleafLab/ArchR/tarball/master' failed
运行结果及报错内容
Downloading GitHub repo GreenleafLab/ArchR@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/GreenleafLab/ArchR/tarball/master' failed
Error: Failed to install 'ArchR' from GitHub:
Timeout was reached: [api.github.com] Proxy CONNECT aborted due to timeout
我的解答思路和尝试过的方法
我试着用官方文档中的流程安装,发现不能成功,于是在conda安装了devtools,之后再R中安装了BiocManager,但在安装ArchR时出现报错,换源选择中科大的也没有下载成功,于是我从GitHub下载了ArchR并上传,下载得到的文件是.zip格式,也没有安装成功
我想要达到的结果
在anaconda配置的R中成功安装ArchR并运行