Running ‘testthat.R’ [35s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(SimNPH)
  Loading required package: SimDesign
  Loading required package: survival
  > 
  > test_check("SimNPH")
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 411 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-summarise.R:139:3'): creating a summarise function for an estimator works ──
  Names of `sim_results` ('AHR_15', 'AHRoc_15', 'AHRoc_robust_15', 'COMPLETED', 'REPLICATIONS', 'SEED', 'SIM_TIME', 'coxph.1.N', 'coxph.1.N_missing', 'coxph.1.N_missing_CI', 'coxph.1.N_missing_lower', 'coxph.1.N_missing_n_evt', 'coxph.1.N_missing_n_pat', 'coxph.1.N_missing_sd', 'coxph.1.N_missing_upper', 'coxph.1.bias', 'coxph.1.cover_lower', 'coxph.1.cover_upper', 'coxph.1.coverage', 'coxph.1.mae', 'coxph.1.mean_est', 'coxph.1.mean_n_evt', 'coxph.1.mean_n_pat', 'coxph.1.mean_sd', 'coxph.1.median_est', 'coxph.1.mse', 'coxph.1.null_cover', 'coxph.1.null_lower', 'coxph.1.null_upper', 'coxph.1.sd_bias', 'coxph.1.sd_est', 'coxph.1.sd_mae', 'coxph.1.sd_mse', 'coxph.1.sd_n_evt', 'coxph.1.sd_n_pat', 'coxph.1.sd_sd', 'coxph.1.sd_width', 'coxph.1.width', 'coxph.N', 'coxph.N_missing', 'coxph.N_missing_CI', 'coxph.N_missing_lower', 'coxph.N_missing_n_evt', 'coxph.N_missing_n_pat', 'coxph.N_missing_sd', 'coxph.N_missing_upper', 'coxph.bias', 'coxph.cover_lower', 'coxph.cover_upper', 'coxph.coverage', 'coxph.gAHR.N', 'coxph.gAHR.N_missing', 'coxph.gAHR.N_missing_CI', 'coxph.gAHR.N_missing_lower', 'coxph.gAHR.N_missing_n_evt', 'coxph.gAHR.N_missing_n_pat', 'coxph.gAHR.N_missing_sd', 'coxph.gAHR.N_missing_upper', 'coxph.gAHR.bias', 'coxph.gAHR.cover_lower', 'coxph.gAHR.cover_upper', 'coxph.gAHR.coverage', 'coxph.gAHR.mae', 'coxph.gAHR.mean_est', 'coxph.gAHR.mean_n_evt', 'coxph.gAHR.mean_n_pat', 'coxph.gAHR.mean_sd', 'coxph.gAHR.median_est', 'coxph.gAHR.mse', 'coxph.gAHR.null_cover', 'coxph.gAHR.null_lower', 'coxph.gAHR.null_upper', 'coxph.gAHR.sd_bias', 'coxph.gAHR.sd_est', 'coxph.gAHR.sd_mae', 'coxph.gAHR.sd_mse', 'coxph.gAHR.sd_n_evt', 'coxph.gAHR.sd_n_pat', 'coxph.gAHR.sd_sd', 'coxph.gAHR.sd_width', 'coxph.gAHR.width', 'coxph.hr.N', 'coxph.hr.N_missing', 'coxph.hr.N_missing_CI', 'coxph.hr.N_missing_lower', 'coxph.hr.N_missing_n_evt', 'coxph.hr.N_missing_n_pat', 'coxph.hr.N_missing_sd', 'coxph.hr.N_missing_upper', 'coxph.hr.bias', 'coxph.hr.cover_lower', 'coxph.hr.cover_upper', 'coxph.hr.coverage', 'coxph.hr.mae', 'coxph.hr.mean_est', 'coxph.hr.mean_n_evt', 'coxph.hr.mean_n_pat', 'coxph.hr.mean_sd', 'coxph.hr.median_est', 'coxph.hr.mse', 'coxph.hr.null_cover', 'coxph.hr.null_lower', 'coxph.hr.null_upper', 'coxph.hr.sd_bias', 'coxph.hr.sd_est', 'coxph.hr.sd_mae', 'coxph.hr.sd_mse', 'coxph.hr.sd_n_evt', 'coxph.hr.sd_n_pat', 'coxph.hr.sd_sd', 'coxph.hr.sd_width', 'coxph.hr.width', 'coxph.mae', 'coxph.mean_est', 'coxph.mean_n_evt', 'coxph.mean_n_pat', 'coxph.mean_sd', 'coxph.median_est', 'coxph.mse', 'coxph.null_cover', 'coxph.null_lower', 'coxph.null_upper', 'coxph.sd_bias', 'coxph.sd_est', 'coxph.sd_mae', 'coxph.sd_mse', 'coxph.sd_n_evt', 'coxph.sd_n_pat', 'coxph.sd_sd', 'coxph.sd_width', 'coxph.width', 'delay', 'followup', 'gAHR_15', 'hazard_ctrl', 'hazard_trt', 'median_survival_ctrl', 'median_survival_trt', 'n_ctrl', 'n_trt', 'random_withdrawal', 'recruitment', 'rmst_ctrl_15', 'rmst_trt_15') don't match 'AHR_15', 'AHRoc_15', 'AHRoc_robust_15', 'COMPLETED', 'RAM_USED', 'REPLICATIONS', 'SEED', 'SIM_TIME', 'coxph.1.N', 'coxph.1.N_missing', 'coxph.1.N_missing_CI', 'coxph.1.N_missing_lower', 'coxph.1.N_missing_n_evt', 'coxph.1.N_missing_n_pat', 'coxph.1.N_missing_sd', 'coxph.1.N_missing_upper', 'coxph.1.bias', 'coxph.1.cover_lower', 'coxph.1.cover_upper', 'coxph.1.coverage', 'coxph.1.mae', 'coxph.1.mean_est', 'coxph.1.mean_n_evt', 'coxph.1.mean_n_pat', 'coxph.1.mean_sd', 'coxph.1.median_est', 'coxph.1.mse', 'coxph.1.null_cover', 'coxph.1.null_lower', 'coxph.1.null_upper', 'coxph.1.sd_bias', 'coxph.1.sd_est', 'coxph.1.sd_mae', 'coxph.1.sd_mse', 'coxph.1.sd_n_evt', 'coxph.1.sd_n_pat', 'coxph.1.sd_sd', 'coxph.1.sd_width', 'coxph.1.width', 'coxph.N', 'coxph.N_missing', 'coxph.N_missing_CI', 'coxph.N_missing_lower', 'coxph.N_missing_n_evt', 'coxph.N_missing_n_pat', 'coxph.N_missing_sd', 'coxph.N_missing_upper', 'coxph.bias', 'coxph.cover_lower', 'coxph.cover_upper', 'coxph.coverage', 'coxph.gAHR.N', 'coxph.gAHR.N_missing', 'coxph.gAHR.N_missing_CI', 'coxph.gAHR.N_missing_lower', 'coxph.gAHR.N_missing_n_evt', 'coxph.gAHR.N_missing_n_pat', 'coxph.gAHR.N_missing_sd', 'coxph.gAHR.N_missing_upper', 'coxph.gAHR.bias', 'coxph.gAHR.cover_lower', 'coxph.gAHR.cover_upper', 'coxph.gAHR.coverage', 'coxph.gAHR.mae', 'coxph.gAHR.mean_est', 'coxph.gAHR.mean_n_evt', 'coxph.gAHR.mean_n_pat', 'coxph.gAHR.mean_sd', 'coxph.gAHR.median_est', 'coxph.gAHR.mse', 'coxph.gAHR.null_cover', 'coxph.gAHR.null_lower', 'coxph.gAHR.null_upper', 'coxph.gAHR.sd_bias', 'coxph.gAHR.sd_est', 'coxph.gAHR.sd_mae', 'coxph.gAHR.sd_mse', 'coxph.gAHR.sd_n_evt', 'coxph.gAHR.sd_n_pat', 'coxph.gAHR.sd_sd', 'coxph.gAHR.sd_width', 'coxph.gAHR.width', 'coxph.hr.N', 'coxph.hr.N_missing', 'coxph.hr.N_missing_CI', 'coxph.hr.N_missing_lower', 'coxph.hr.N_missing_n_evt', 'coxph.hr.N_missing_n_pat', 'coxph.hr.N_missing_sd', 'coxph.hr.N_missing_upper', 'coxph.hr.bias', 'coxph.hr.cover_lower', 'coxph.hr.cover_upper', 'coxph.hr.coverage', 'coxph.hr.mae', 'coxph.hr.mean_est', 'coxph.hr.mean_n_evt', 'coxph.hr.mean_n_pat', 'coxph.hr.mean_sd', 'coxph.hr.median_est', 'coxph.hr.mse', 'coxph.hr.null_cover', 'coxph.hr.null_lower', 'coxph.hr.null_upper', 'coxph.hr.sd_bias', 'coxph.hr.sd_est', 'coxph.hr.sd_mae', 'coxph.hr.sd_mse', 'coxph.hr.sd_n_evt', 'coxph.hr.sd_n_pat', 'coxph.hr.sd_sd', 'coxph.hr.sd_width', 'coxph.hr.width', 'coxph.mae', 'coxph.mean_est', 'coxph.mean_n_evt', 'coxph.mean_n_pat', 'coxph.mean_sd', 'coxph.median_est', 'coxph.mse', 'coxph.null_cover', 'coxph.null_lower', 'coxph.null_upper', 'coxph.sd_bias', 'coxph.sd_est', 'coxph.sd_mae', 'coxph.sd_mse', 'coxph.sd_n_evt', 'coxph.sd_n_pat', 'coxph.sd_sd', 'coxph.sd_width', 'coxph.width', 'delay', 'followup', 'gAHR_15', 'hazard_ctrl', 'hazard_trt', 'median_survival_ctrl', 'median_survival_trt', 'n_ctrl', 'n_trt', 'random_withdrawal', 'recruitment', 'rmst_ctrl_15', 'rmst_trt_15'
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 411 ]
  Error: Test failures
  Execution halted