Running ‘testthat.R’ [7s/12s]
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)  ──────────────────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 2. Error: (unknown) (@test_plot_ceteris_paribus.R#3)  ───────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 3. Error: (unknown) (@test_plot_explainer.R#3)  ─────────────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 4. Error: (unknown) (@test_plot_model_performance.R#3)  ─────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 5. Error: (unknown) (@test_plot_prediction_breakdown.R#3)  ──────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 6. Error: (unknown) (@test_plot_variable_response.R#3)  ─────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 7. Error: (unknown) (@test_prints.R#3)  ─────────────────────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 8. Error: (unknown) (@test_surv_ceteris_paribus.R#3)  ───────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 9. Error: (unknown) (@test_surv_model_performance.R#3)  ─────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 10. Error: (unknown) (@test_surv_prediction_breakdown.R#3)  ─────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ── 11. Error: (unknown) (@test_surv_variable_response.R#3)  ────────────────────
  object 'n' not found
  Backtrace:
   1. base::source("objects_for_tests.R")
   5. rms::cph(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 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