Running ‘testthat.R’ [22s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(trafficCAR)
  > 
  > test_check("trafficCAR")
  Saving _problems/test-car-precision-317.R
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 543 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-fit-traffic.R:108:3'
  • leaflet is installed; skipping missing-dependency test (1):
    'test-plot-interactive.R:55:5'
  • osmdata is installed; cannot test missing-dependency error path. (1):
    'test-osm.R:3:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-car-precision.R:317:3'): ICAR construction is not slower than proper CAR ──
  Expected `t_icar` <= `1.2 * t_car`.
  Actual comparison: 11854110.5 > 11166829.8
  Difference: 687280.7 > 0
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 543 ]
  Error:
  ! Test failures.
  Execution halted
Package suggested but not available for checking: ‘osmdata’