当我尝试安装软件包coxphf时,出现以下错误 . 请让我知道如何解决这个问题:
install.packages("coxphf")
> Installing package into ‘C:/Users/kondo-stat/R/win-library/3.4’
> (as ‘lib’ is unspecified)
> trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/coxphf_1.12.zip'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/coxphf_1.12.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/coxphf_1.12.zip'
Warning in install.packages :
download of package ‘coxphf’ failed
1 回答
看起来CRAN在该地址上没有该软件包 . 在挖掘之后,我在这里找到了包裹:https://cran.rstudio.com/bin/windows/contrib/3.4/coxphf_1.13.zip
下载并按照此处的说明操作:
http://stat.columbia.edu/~gelman/bugsR/alternate_install.html
虽然这不是预期的行为,但我不确定是什么导致它,但这种解决方法现在可以正常运行