> if (!requireNamespace("BiocManager", quietly = TRUE))
+ install.packages("BiocManager")
> BiocManager::install("pathview")
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
无法打开URL'https://cloud.r-project.org/src/contrib/PACKAGES'
Bioconductor version 3.10 (BiocManager 1.30.19), R 3.6.3 (2020-02-29)
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
无法打开URL'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning message:
package(s) not installed when version(s) same as or greater than current;
use `force = TRUE` to re-install: 'pathview'
根据输出信息显示,似乎您遇到了无法访问 R 仓库的问题。这可能是由于您的网络设置或 R 仓库的问题导致的。
建议您先确认您的网络是否正常,尝试使用浏览器访问 R 仓库,看看是否能够成功访问。如果您无法访问 R 仓库,可以尝试更改网络设置或者使用代理来访问。
另外,如果您的 R 仓库过于过时,也可能会出现无法下载包的情况,建议您尝试更新 R 仓库。在 R 中可以使用以下命令更新 R 仓库:
options(repos = c(CRAN = "https://cloud.r-project.org"))
update.packages(checkBuilt = TRUE, ask = FALSE)
BiocManager::install("pathview",force = TRUE)