gpt4 book ai didi

r - 错误 : Bioconductor version '3.13' requires R version '4.1' (R version 4. 0.2)

转载 作者:行者123 更新时间:2023-12-04 18:56:51 33 4
gpt4 key购买 nike

我从其他用户那里发现了“类似”的问题,但没有一个答案有效。我正在尝试安装这些软件包:

if (!require("BiocManager"))
install.packages("BiocManager")
BiocManager::install("maEndToEnd", version = "devel")

if (!require("BiocManager"))
install.packages("BiocManager")
BiocManager::install("ArrayExpress")
----------------------------------------------------------
Error: Bioconductor version '3.13' requires R version '4.1'
我的 R 版本 4.0.2,我的操作系统是 Ubuntu 20.10
我想也许我可以:
a) 更改我的 R 版本(我没有找到 ubuntu R 版本 4.1)
b) 更改我的 Bioconductor 版本。出于这个原因,我执行了:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(version = "3.12")
------------------------------------------------------
Error in packageVersion("BiocManager") :
there is no package called ‘BiocManager’
install("BiocManager")
------------------------------
Error: Can't find 'BiocManager'
´´´

I also tried so many things that I believe I just made worse the situation by eliminating packages from other libraries:
/usr/lib/R/site-library
/home/usr_name/R/x86_64-pc-linux-gnu-library/4.0
这是我目前拥有的包目录:
library()
------------------------------------
Packages in library ‘/usr/lib/R/site-library’:

askpass
assertthat
backports
base64enc
BH
Metapackage
bit
bit64
bitops
blob
brew
callr
cli
cliapp
clipr
colorspace
and

etc...

Packages in library ‘/usr/lib/R/library’:

base
boot
for

class
cluster
Extended

etc ...
我该如何进行?如您所知,我是与信息学相关的所有方面的初学者。任何细节将不胜感激。

最佳答案

除非您确实需要特定版本的 BioConductor 软件包,否则您无需指定 version .试试下面的 standard approach看看这是否有效:

install.packages("BiocManager")
library(BiocManager)
install() # Install BioConductor core packages
install("maEndToEnd")
install("ArrayExpress")

关于r - 错误 : Bioconductor version '3.13' requires R version '4.1' (R version 4. 0.2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66437825/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com