无法安装survminer:套件是在R 3.5.3下建立的

时间:2019-07-01 09:25:57

标签: r survival-analysis

我正在尝试在R中安装survminer库,但这给了我警告

> install.packages("survminer", dependencies = TRUE)
Installing package into ‘C:/Users/akjain/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘cmprsk’ is not available
also installing the dependencies ‘mstate’, ‘muhaz’, ‘deSolve’, ‘flexsurv’


  There is a binary version available but the source version is later:
        binary source needs_compilation
deSolve   1.21   1.23              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/mstate_0.2.11.zip'
Content type 'application/zip' length 826177 bytes (806 KB)
downloaded 806 KB

当我加载库时,我得到了错误,

library("survminer")
Error: package or namespace load failed for ‘survminer’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘cmprsk’
In addition: Warning message:
package ‘survminer’ was built under R version 3.5.3 

我正在使用R版本3.5.1

0 个答案:

没有答案
相关问题