簡體   English   中英

無法安裝 R 包

[英]Unable to install R package

當我嘗試安裝包 coxphf 時,出現以下錯誤。 請讓我知道如何解決這個問題:

install.packages("coxphf")

> Installing package into ‘C:/Users/User/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

看起來該軟件包在該地址的 CRAN 上不可用。 挖掘后,我在這里找到了這個包: https : //cran.rstudio.com/bin/windows/contrib/3.4/coxphf_1.13.zip

下載它並按照此處的說明進行操作:

http://stat.columbia.edu/~gelman/bugsR/alternate_install.html

不過,這不是預期的行為,我不確定是什么原因造成的,但這種解決方法現在可以正常工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM