Running ‘testthat.R’ [14s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tccox)
  > 
  > test_check("tccox")
  ── 1. Failure: COX (@test_COX.R#6)  ────────────────────────────────────────────
  z[[1]] has changed from known value recorded in 'test_COX.rds'.
  Names: 4 string mismatches
  Component 9: names for current but not for target
  Component 9: Numeric: lengths (2, 5) differ
  Component 10: names for target but not for current
  Component 10: Numeric: lengths (3, 2) differ
  Component 11: Modes: character, numeric
  Component 11: Lengths: 1, 3
  Component 11: names for current but not for target
  Component 11: target is character, current is numeric
  ...
  
  ── 2. Failure: HTC (@test_HTC.R#6)  ────────────────────────────────────────────
  z[[1]] has changed from known value recorded in 'test_HTC.rds'.
  Names: 4 string mismatches
  Component 9: names for current but not for target
  Component 9: Numeric: lengths (23, 5) differ
  Component 10: names for target but not for current
  Component 10: Numeric: lengths (3, 23) differ
  Component 11: Modes: character, numeric
  Component 11: Lengths: 1, 3
  Component 11: names for current but not for target
  Component 11: target is character, current is numeric
  ...
  
  ── 3. Failure: ITC (@test_ITC.R#6)  ────────────────────────────────────────────
  z[[1]] has changed from known value recorded in 'test_ITC.rds'.
  Names: 4 string mismatches
  Component 9: names for current but not for target
  Component 9: Numeric: lengths (21, 5) differ
  Component 10: names for target but not for current
  Component 10: Numeric: lengths (3, 21) differ
  Component 11: Modes: character, numeric
  Component 11: Lengths: 1, 3
  Component 11: names for current but not for target
  Component 11: target is character, current is numeric
  ...
  
  ── 4. Failure: PTC (@test_PTC.R#5)  ────────────────────────────────────────────
  z[[1]] has changed from known value recorded in 'test_PTC.rds'.
  Names: 4 string mismatches
  Component 9: names for current but not for target
  Component 9: Numeric: lengths (6, 5) differ
  Component 10: names for target but not for current
  Component 10: Numeric: lengths (3, 6) differ
  Component 11: Modes: character, numeric
  Component 11: Lengths: 1, 3
  Component 11: names for current but not for target
  Component 11: target is character, current is numeric
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 4
  1. Failure: COX (@test_COX.R#6) 
  2. Failure: HTC (@test_HTC.R#6) 
  3. Failure: ITC (@test_ITC.R#6) 
  4. Failure: PTC (@test_PTC.R#5) 
  
  Error: testthat unit tests failed
  Execution halted