php 服务器 linux R包安装失败怎么办?(一)msigdbr - file(url, destfile, method, mode = &#34

📅 2026-11-30 👤 拼多多助力营销技巧 📂 2027拼多多助力 👁️ 289 次阅读

R包安装失败

如果是网络原因(error connection),就使用本地安装的方法。如果是网络原因,通常会出现安装超时,或者网络无法连接的提示

当你把timeout 设置到1000之后还会报错,怎么办?

options(timeout = 1000)

1. 从报错信息上看是Error in download。说明下载错误

​Error in download.file(url, destfile, method, mode = "wb", ...) : download from 'https://cran.rstudio.com/src/contrib/msigdbr_7.5.1.tar.gz' failed

2. 使用浏览器下载这个文件:

https://cran.rstudio.com/src/contrib/msigdbr_7.5.1.tar.gz 拼多多帮助力入口

3. 然后本地安装

​> install.packages("~/software/msigdbr_7.5.1.tar.gz", repos = NULL, type = "source")Installing package into ‘/home/data/t040413/R/x86_64-pc-linux-gnu-library/4.2’(as ‘lib’ is unspecified)* installing *source* package ‘msigdbr’ ...** package ‘msigdbr’ successfully unpacked and MD5 sums checked** using staged installation** R** inst** byte-compile and prepare package for lazy loading** help*** installing help indices** building package indices** installing vignettes** testing if installed package can be loaded from temporary location** testing if installed package can be loaded from final location** testing if installed package keeps a record of temporary installation path* DONE (msigdbr)>

成功!

*****************************************************************

今天还出现另外一个GSVA安装错误

1 安装GSVA出现报错

BiocManager::install("GSVA")Error: Bioconductor version '3.16' requires R version '4.2'; use `version = '3.18'` with R version 4.3; see https://bioconductor.org/install

仔细读报错信息,这不是网络原因,是版本原因

2. 那就更新下

BiocManager::install(version = "3.18")​

成功!

看完记得顺手点个“在看”哦!

好文链接

标签: 拼多多助力网站平台 赚钱项目 拼多多助力网 首码项目 手赚APP
拼多多助力营销技巧