我正在使用R,需要安装一些软件包。
> BiocManager::install( c( list, of, packages) )
Error: Bioconductor version '3.13' requires R version '4.1'; use
`BiocManager::install(version = '3.16')` with R version 4.2; see
https://bioconductor.org/install
好的,我需要更新生物导体。没问题:
BiocManager::install(version = '3.16')
这时,我的终端上输出了一大堆文字,持续了半个多小时,最后是这样的:
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (ggpubr)
The downloaded source packages are in
‘/tmp/Rtmpu3HGq9/downloaded_packages’
Error in .install_github(todo, lib = lib, lib.loc = lib.loc, repos = repos, :
argument "update" is missing, with no default
In addition: Warning message:
package(s) not installed when version(s) same as or greater than current; use
`force = TRUE` to re-install: 'BiocVersion'
所以我又用“force”选项做了一次,但是这个过程坚持从头开始,所以我不得不再等半个小时,得到同样的问题。我已经做了差不多十几次了,命令和环境设置都有变化,这消耗了好几天的工作时间。
我还注意到输出中的另一条消息:
Warning: unable to access index for repository https://bioconductor.org/packages/3.16/bioc/src/contrib:
cannot open URL 'https://bioconductor.org/packages/3.16/bioc/src/contrib/PACKAGES'
我是否被某些内部网络阻止?我还尝试使用Sys.setenv(http_proxy="[proxyAddress]:[port]")
设置代理
没有用。我的想法用完了,并将非常感谢任何帮助。
1条答案
按热度按时间0h4hbjxa1#
此问题讨论如下:基本上它将在BiocManager的下一个版本中得到修复,也就是1.30.19之后的版本。