Running ‘testthat.R’ [169s/102s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(styler)
  > test_check("styler") # checks multiple files, in parallel
  Starting 2 test processes
  [ FAIL 1 | WARN 0 | SKIP 26 | PASS 535 ]
  
  ══ Skipped tests (26) ══════════════════════════════════════════════════════════
  • .Platform$OS.type != "windows" is TRUE (1): 'test-io.R:9:3'
  • DiagrammeR cannot be loaded (3): 'test-create_tree.R:4:3',
    'test-create_tree.R:15:3', 'test-relocate_eq_assign.R:4:3'
  • On CRAN (21): 'test-cache-clean-up.R:2:3', 'test-cache-high-level-api.R:3:3',
    'test-cache-high-level-api.R:29:3', 'test-cache-high-level-api.R:40:3',
    'test-cache-high-level-api.R:60:3', 'test-cache-high-level-api.R:74:3',
    'test-cache-high-level-api.R:91:3', 'test-cache-high-level-api.R:99:3',
    'test-cache-high-level-api.R:139:3', 'test-cache-high-level-api.R:152:3',
    'test-cache-with-r-cache.R:32:3', 'test-helpers.R:5:3',
    'test-helpers.R:16:3', 'test-public_api-1.R:104:5', 'test-roundtrip.R:16:3',
    'test-roundtrip.R:22:3', 'test-public_api-3.R:164:3', 'test-utils.R:11:3',
    'test-zzz.R:3:3', 'tests-cache-require-serial.R:22:3',
    'tests-cache-require-serial.R:33:3'
  • Running in parallel (1): 'test-cache-clean-up.R:15:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-exception_handling.R:33:3'): warning is given when transformers does not contain a version ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
       ▆
    1. ├─testthat (local) expect_fun(assert_transformers(sg), "name and a version field are deprecated and will be removed in a future version of styler") at test-exception_handling.R:33:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─styler:::assert_transformers(sg)
    8.   └─base::Ops.numeric_version(utils::packageVersion("styler"), version_cutoff)
    9.     └─base::as.numeric_version(e2)
   10.       └─base::numeric_version(x)
   11.         └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  
  [ FAIL 1 | WARN 0 | SKIP 26 | PASS 535 ]
  Deleting unused snapshots:
  • public_api.md
  Error: Test failures
  Execution halted