美文网首页
R和Bioconductor的安装(2019)

R和Bioconductor的安装(2019)

作者: BohanL | 来源:发表于2019-08-12 11:07 被阅读0次

卸载原系统的R

sudo apt-get autoremove r-base-core

显示当前源支持的R版本信息

sudo apt-cache showpkg r-base

Provides:
3.6.1-3xenial -
3.6.1-1xenial -
3.6.0-2xenial -
3.6.0-1xenial -
3.5.3-1xenial -
3.5.2-1xenial -
3.5.1-2xenial -
3.5.1-1xenial -
3.5.0-1xenial -
3.2.3-4 -

安装指定版本的R

sudo apt-get install r-base-core=3.5.3-1xenial

目前最新的Bioconductor3.8依赖于R 3.5版本

$ sudo R            #直接在终端输入R,打开R运行环境
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> if (!requireNamespace("BiocManager", quietly = TRUE))
+     install.packages("BiocManager")
> BiocManager::install()
Bioconductor version 3.8 (BiocManager 1.30.4), R 3.5.3 (2019-03-11)
Update old packages: 'BiocParallel', 'clusterProfiler', 'DOSE', 'edgeR',
  'qvalue'
Update all/some/none? [a/s/n]: A

相关文章

网友评论

      本文标题:R和Bioconductor的安装(2019)

      本文链接:https://www.haomeiwen.com/subject/ufuyjctx.html