前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >有可能给超低版本的R安装高配包吗

有可能给超低版本的R安装高配包吗

作者头像
生信技能树
发布2021-10-12 12:03:04
1.4K0
发布2021-10-12 12:03:04
举报
文章被收录于专栏:生信技能树生信技能树

最近在一个比较古老(其实就是2019年)的服务器上面更新以前的一个表观调控网页工具,其中需要使用R语言来安装一下必备的包 ,比如 ChIPseeker ,麻烦的是卡死在了第一步,如下所示 :

代码语言:javascript
复制
(chipseq)  18:54:50 ~/data/project/anno_by_ChIPseeker 
$which R 
~/miniconda3/envs/chipseq/bin/R
(chipseq)  19:08:05 ~/data/project/anno_by_ChIPseeker 
$R --version 
R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-conda_cos6-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

可以看到R版本是超级低了,R version 3.5.1 (2018-07-02) ,因为很少更新,而且两年多没有使用它了。发现安装最基础包 ggplot2 都失败,如下所示:

代码语言:javascript
复制
> install.packages('ggplot2')
Warning: dependency ‘mgcv’ is not available
trying URL 'https://mirror.las.iastate.edu/CRAN/src/contrib/ggplot2_3.3.5.tar.gz'
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
==================================================
downloaded 2.9 MB

ERROR: dependency ‘mgcv’ is not available for package ‘ggplot2’

搜索了一下它所依赖的 mgcv 包 :

mgcv: Mixed GAM Computation Vehicle with Automatic Smoothness Estimation

Generalized additive (mixed) models, some of their extensions and other generalized ridge regression with multiple smoothing parameter estimation by (Restricted) Marginal Likelihood, Generalized Cross Validation and similar, or using iterated nested Laplace approximation for fully Bayesian inference. See Wood (2017) <doi:10.1201/9781315370279> for an overview.

代码语言:javascript
复制
Version: 1.8-37
Priority: recommended
Depends: R (≥ 3.6.0), nlme (≥ 3.1-64)
Imports: methods, stats, graphics, Matrix, splines, utils
Suggests: parallel, survival, MASS
Published: 2021-09-23

确实是因为 mgcv 对R版本的要求,大于了我服务器的旧版R啦。

当然了,一个很直接的解决方案就是重置这个conda环境,就会安装最新版R啦。

不过,我比较好奇的是,难道3.5版本的R已经是基本上不可用了吗?还是说其实是有方法给超低版本的R安装高配包?

欢迎大家各抒己见!

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2021-09-23,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 生信技能树 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档