当前位置:   article > 正文

R包安装失败怎么办?(一)msigdbr_error in download.file(url, destfile, method, mode

error in download.file(url, destfile, method, mode = "wb", ...) : download f

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(aslibis 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安装错误

  • 安装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")

成功!

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/333452
推荐阅读
相关标签
  

闽ICP备14008679号