Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(survxai)
  Loading required package: prodlim
  Welcome to survxai (version: 0.2.0).
  Information about the package can be found in the GitHub repository: https://github.com/MI2DataLab/survxai
  > 
  > test_check("survxai")
  -- 1. Error: (unknown) (@test_explainer.R#3)  ----------------------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_explainer.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 2. Error: (unknown) (@test_plot_ceteris_paribus.R#3)  -----------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_plot_ceteris_paribus.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 3. Error: (unknown) (@test_plot_explainer.R#3)  -----------------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_plot_explainer.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 4. Error: (unknown) (@test_plot_model_performance.R#3)  ---------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_plot_model_performance.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 5. Error: (unknown) (@test_plot_prediction_breakdown.R#3)  ------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_plot_prediction_breakdown.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 6. Error: (unknown) (@test_plot_variable_response.R#3)  ---------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_plot_variable_response.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 7. Error: (unknown) (@test_prints.R#3)  -------------------------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_prints.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 8. Error: (unknown) (@test_surv_ceteris_paribus.R#3)  -----------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_surv_ceteris_paribus.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 9. Error: (unknown) (@test_surv_model_performance.R#3)  ---------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_surv_model_performance.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 10. Error: (unknown) (@test_surv_prediction_breakdown.R#3)  -----------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_surv_prediction_breakdown.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  -- 11. Error: (unknown) (@test_surv_variable_response.R#3)  --------------------
  package 'Hmisc' could not be loaded
  1: source("objects_for_tests.R") at testthat/test_surv_variable_response.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: library(rms)
  6: .getRequiredPackages2(pkgInfo, quietly = quietly)
  7: stop(gettextf("package %s could not be loaded", sQuote(pkg)), call. = FALSE, domain = NA)
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 FAILED: 11
  1. Error: (unknown) (@test_explainer.R#3) 
  2. Error: (unknown) (@test_plot_ceteris_paribus.R#3) 
  3. Error: (unknown) (@test_plot_explainer.R#3) 
  4. Error: (unknown) (@test_plot_model_performance.R#3) 
  5. Error: (unknown) (@test_plot_prediction_breakdown.R#3) 
  6. Error: (unknown) (@test_plot_variable_response.R#3) 
  7. Error: (unknown) (@test_prints.R#3) 
  8. Error: (unknown) (@test_surv_ceteris_paribus.R#3) 
  9. Error: (unknown) (@test_surv_model_performance.R#3) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted