Running ‘testthat.R’ [7s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ivdtools)
  
  Attaching package: 'ivdtools'
  
  The following object is masked from 'package:testthat':
  
      describe
  
  The following object is masked from 'package:stats':
  
      profile
  
  The following object is masked from 'package:base':
  
      kappa
  
  > 
  > test_check("ivdtools")
  
  Correlation
    Method: pearson
    r = 0.9999, 95% CI [0.9995, 1.0000]
    p-value: < 2.2e-16
    n = 12
  
  Regression
    Method: OLS
    Intercept = -0.1079  (SE = 0.1590)
    Slope     = 1.0036  (SE = 0.0052)
    Intercept 95% CI: [-0.4622, 0.2463]
    Slope     95% CI: [0.9920, 1.0152]
      H0: slope = 1 -> t = 0.6864, p = 0.5081
      slope not significantly different from 1 (CI contains 1)
    R-squared = 0.9997
    Sigma     = 0.2248
    n = 12
  
  Bland-Altman
    Type:        difference
    Y-axis:      candidate - reference
    X-axis:      Mean of candidate and reference
    n = 12
  
    Mean diff:       0.0083
    SD diff:         0.2193
    95% LoA: [-0.4215, 0.4382]
  
    95% CI for LoA:
      Lower LoA: [-0.6667, -0.1764]
      Upper LoA: [0.1930, 0.6834]
  
  AUC Table
    Column               AUC          95% CI  Direction
    ------------------------------------------------------------ 
    marker            1.0000  [   NA,    NA]       geq
  
  
  Saving _problems/test-sensitivity-27.R
  Saving _problems/test-sensitivity-32.R
  Saving _problems/test-sensitivity-34.R
  Saving _problems/test-sensitivity-110.R
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 330 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-sensitivity.R:27:3'): full pipeline: LoB / LoD / LoQ match EP17-A2 and analytic values ──
  Expected `as.numeric(object)` to equal `as.numeric(expected)`.
  Differences:
    `actual`: 0.219
  `expected`: 0.198
  
  Backtrace:
      ▆
   1. └─ivdtools:::expect_num_equal(res$lod, lod_ana, tolerance = 1e-06) at test-sensitivity.R:27:3
   2.   └─testthat::expect_equal(...) at ./helper-testing.R:8:3
  ── Failure ('test-sensitivity.R:32:3'): full pipeline: LoB / LoD / LoQ match EP17-A2 and analytic values ──
  Expected `as.numeric(object)` to equal `as.numeric(expected)`.
  Differences:
    `actual`: 0.5086
  `expected`: 0.5000
  
  Backtrace:
      ▆
   1. └─ivdtools:::expect_num_equal(res$loq, 0.5, tolerance = 0.001) at test-sensitivity.R:32:3
   2.   └─testthat::expect_equal(...) at ./helper-testing.R:8:3
  ── Failure ('test-sensitivity.R:34:3'): full pipeline: LoB / LoD / LoQ match EP17-A2 and analytic values ──
  Expected `res$model` to equal "Model_4".
  Differences:
  `actual`:   "Model_7"
  `expected`: "Model_4"
  
  ── Failure ('test-sensitivity.R:110:3'): no-blank data returns only LoQ ────────
  Expected `as.numeric(object)` to equal `as.numeric(expected)`.
  Differences:
    `actual`: 0.5086
  `expected`: 0.5000
  
  Backtrace:
      ▆
   1. └─ivdtools:::expect_num_equal(res$loq, 0.5, tolerance = 0.001) at test-sensitivity.R:110:3
   2.   └─testthat::expect_equal(...) at ./helper-testing.R:8:3
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 330 ]
  Error:
  ! Test failures.
  Execution halted