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

2021-10-12 12:03:04 浏览数 (2)

最近在一个比较古老(其实就是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安装高配包?

欢迎大家各抒己见!

0 人点赞