我正在尝试在R中安装BiocManager。由于它是CRAN的归档文件,因此无法使用bioclite进行安装。我从存档包中检查了有关安装的各种帖子。因此,我遵循以下代码:
url<-"https://cran.r-project.org/src/contrib/BiocManager_1.30.4.tar.gz"
pkgFile<-"BiocManager_1.30.4.tar.gz"
download.file(url = url, destfile = pkgFile)
install.packages(pkgs=pkgFile, type="source", repos=NULL)
但是我遇到以下错误:
错误:此R为3.4.4版,程序包'BiocManager'需要R> = 3.5.0 警告信息: 在install.packages(pkgs = pkgFile,type =“ source”,repos = NULL)中: 软件包“ BiocManager_1.30.4.tar.gz”的安装退出状态为非零
我也尝试了其他解决方案,并得到了相同的错误
install.packages('https://cran.r-project.org/src/contrib/BiocManager_1.30.4.tar.gz', repos = NULL)
ERROR: this R is version 3.4.4, package 'BiocManager' requires R >= 3.5.0
Warning message:
In install.packages("https://cran.r-project.org/src/contrib/BiocManager_1.30.4.tar.gz", :
installation of package ‘/tmp/RtmpKVWQFu/downloaded_packages /BiocManager_1.30.4.tar.gz’ had non-zero exit status
您能帮我纠正这个问题吗?