Running ‘testthat.R’ [30s/47s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #' @importFrom precrec
  > 
  > library(testthat)
  > 
  > # test_check("precrec", reporter=ProgressReporter)
  > test_check("precrec")
  Loading required package: precrec
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 2561 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test_g_autoplot1_pl.R:6:1', 'test_g_autoplot2_curves.R:6:1',
    'test_g_autoplot3_points.R:6:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_mm3_2_reformat_data_labels.R:37:3'): 'labels' takes a vector ──
  `.factor_labels(labels, NULL)` threw an error with unexpected message.
  Expected match: "is not TRUE"
  Actual message: "labels is not an atomic vector"
  Backtrace:
      ▆
   1. └─precrec (local) expect_err_msg(err_msg, NULL) at test_mm3_2_reformat_data_labels.R:37:2
   2.   ├─testthat::expect_error(.factor_labels(labels, NULL), err_msg) at test_mm3_2_reformat_data_labels.R:27:4
   3.   │ └─testthat:::quasi_capture(...)
   4.   │   ├─testthat (local) .capture(...)
   5.   │   │ └─base::withCallingHandlers(...)
   6.   │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7.   └─precrec:::.factor_labels(labels, NULL)
   8.     └─precrec:::.validate_labels(labels)
   9.       └─assertthat::assert_that(...)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 2561 ]
  Deleting unused snapshots:
  • g_autoplot1_pl/autoplot-cmats.svg
  • g_autoplot1_pl/autoplot-fmdat.svg
  • g_autoplot1_pl/autoplot-pevals.svg
  • g_autoplot2_curves/autoplot-mmcurves-cb.svg
  • g_autoplot2_curves/autoplot-mmcurves-legend.svg
  • g_autoplot2_curves/autoplot-mmcurves-raw-curves.svg
  • g_autoplot2_curves/autoplot-mmcurves.svg
  • g_autoplot2_curves/autoplot-mscurves-legend.svg
  • g_autoplot2_curves/autoplot-mscurves.svg
  • g_autoplot2_curves/autoplot-single-smcurve-cb.svg
  • g_autoplot2_curves/autoplot-single-smcurve-raw-curves.svg
  • g_autoplot2_curves/autoplot-single-smcurve.svg
  • g_autoplot2_curves/autoplot-sscurves.svg
  • g_autoplot3_points/mmpoints-b-precision.svg
  • g_autoplot3_points/mmpoints-cb-precision.svg
  • g_autoplot3_points/mmpoints-l-precision.svg
  • g_autoplot3_points/mmpoints-legend-precision.svg
  • g_autoplot3_points/mmpoints-precision.svg
  • g_autoplot3_points/mmpoints-raw-curves-precision.svg
  • g_autoplot3_points/mmpoints.svg
  • g_autoplot3_points/mspoints-b-precision.svg
  • g_autoplot3_points/mspoints-l-precision.svg
  • g_autoplot3_points/mspoints-legend-precision.svg
  • g_autoplot3_points/mspoints-precision.svg
  • g_autoplot3_points/mspoints.svg
  • g_autoplot3_points/smpoints-b-precision.svg
  • g_autoplot3_points/smpoints-cb-precision.svg
  • g_autoplot3_points/smpoints-l-precision.svg
  • g_autoplot3_points/smpoints-precision.svg
  • g_autoplot3_points/smpoints-raw-curves-precision.svg
  • g_autoplot3_points/smpoints.svg
  • g_autoplot3_points/sspoints-b-precision.svg
  • g_autoplot3_points/sspoints-l-precision.svg
  • g_autoplot3_points/sspoints-precision.svg
  • g_autoplot3_points/sspoints.svg
  Error: Test failures
  Execution halted