This question already has answers here:
How to install 2 different R versions on Debian?
(4个答案)
7年前关闭。
大家好,我目前正在使用Bioconductor v2.13在Debian服务器上运行R 3.0.2。我的问题很简单,尽管通过互联网搜索并没有给我一个明确的答案:
我如何从R 3.0.2降级。到R 2-15?
考虑到我保持R 3.0.2,如何将Bioconductor降级到v2.12?
先感谢您,
好消息!我所有的Bioc软件包都在特定的库中。然后,我可以安排(请参阅
然后显式安装我要使用的
和
如果我的Bioconductor软件包安装在R home目录中,那么我将使用
(4个答案)
7年前关闭。
大家好,我目前正在使用Bioconductor v2.13在Debian服务器上运行R 3.0.2。我的问题很简单,尽管通过互联网搜索并没有给我一个明确的答案:
我如何从R 3.0.2降级。到R 2-15?
考虑到我保持R 3.0.2,如何将Bioconductor降级到v2.12?
先感谢您,
最佳答案
通常,Bioconductor设计为可与特定版本的R配合使用,因此不能保证将旧版本的Bioconductor(或任何R软件包)与较新的R版本相关联。最好在Bioconductor mailing list上询问有关Bioconductor软件包的问题。您可能要说的是当前的Bioconductor安装存在一些问题,而您确实最好做的是解决问题。
checkout installed.packages()
的LibPath,并与.libPaths()
的输出进行比较。我有
> head(installed.packages()[,"LibPath"], 1)
affy
"/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.0"
> .libPaths()
[1] "/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.0"
[2] "/home/mtmorgan/bin/R-3-0-branch/library"
好消息!我所有的Bioc软件包都在特定的库中。然后,我可以安排(请参阅
?.libPaths
)以.libPaths开头的R指向Bioc 2.12软件包的新位置,例如,R_LIBS_USER="/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.0-2.12" R
然后显式安装我要使用的
BiocInstaller
软件包的版本,例如,install.packages("BiocInstaller",
repos="http://bioconductor.org/packages/2.12/bioc")
和
library(BiocInstaller); biocLite()
一样。如果我的Bioconductor软件包安装在R home目录中,那么我将使用
remove.packages()
而不是设置.libPaths()
,或者我将运行BiocInstaller::biocValid()
并按照指示还原“太新”的软件包。08-28 00:27