我无法在 R 中安装 OIsurv 包,我该怎么办?

时间:2020-12-28 08:10:18

标签: r

我无法在 R 中安装 OIsurv 包。 我正在尝试安装,但收到以下警告:

install.packages("OIsurv")

Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Installing package into ‘C:/Users/Cgdm/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘OIsurv’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/PACKAGES'

我能做什么?

1 个答案:

答案 0 :(得分:1)

repository website 表示该软件包已从 CRAN 中删除。

您仍然可以从源代码编译包,但可能会遇到问题。那时我会尝试降级 R 版本,或者探索问题所在并更改源代码。