Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [29s/42s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(plumber)
  > 
  > test_check("plumber")
  Saving _problems/test-parser-6.R
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 1884 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-cookies.R:47:3', 'test-deprecated.R:60:3',
    'test-find-port.R:40:3', 'test-find-port.R:56:3', 'test-legacy.R:20:3',
    'test-options.R:22:3', 'test-plumber-print.R:2:3',
    'test-plumber-print.R:60:3', 'test-plumber.R:67:3',
    'test-serializer-device.R:26:1', 'test-serializer-htmlwidgets.R:18:3',
    'test-static.R:23:3', 'test-zzz-openapi.R:254:3',
    'test-zzz-plumb_api.R:10:3', 'test-zzz-plumb_api.R:65:3'
  • {geojsonsf} is not installed (3): 'test-parse-body.R:164:3',
    'test-serializer-geojson.R:2:3', 'test-serializer-geojson.R:24:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-parser.R:6:5'): parsers can be combined ────────────────────────
  Error in `(function (...)  {     if (!requireNamespace("geojsonsf", quietly = TRUE)) {         stop("`geojsonsf` must be installed for `parser_geojson` to work")     }     parser_text(function(val) {         geojsonsf::geojson_sf(val, ...)     }) })()`: `geojsonsf` must be installed for `parser_geojson` to work
  Backtrace:
      ▆
   1. └─plumber (local) expect_parsers(...) at test-parser.R:18:3
   2.   └─plumber:::make_parser(names) at test-parser.R:6:5
   3.     └─base::lapply(...)
   4.       └─plumber (local) FUN(X[[i]], ...)
   5.         ├─base::do.call(init_parser_func, aliases[[alias]])
   6.         └─plumber (local) `<fn>`()
   7.           ├─base::do.call(parser, list(...))
   8.           └─plumber (local) `<fn>`()
  ── Error ('test-parser.R:38:3'): parsers work ──────────────────────────────────
  Error in `(function (...)  {     if (!requireNamespace("geojsonsf", quietly = TRUE)) {         stop("`geojsonsf` must be installed for `parser_geojson` to work")     }     parser_text(function(val) {         geojsonsf::geojson_sf(val, ...)     }) })()`: `geojsonsf` must be installed for `parser_geojson` to work
  Backtrace:
       ▆
    1. └─plumber::pr(test_path("files/parsers.R")) at test-parser.R:38:3
    2.   └─Plumber$new(file = file, filters = filters, envir = envir)
    3.     └─plumber (local) initialize(...)
    4.       └─plumber:::evaluateBlock(...)
    5.         └─base::lapply(...)
    6.           └─plumber (local) FUN(X[[i]], ...)
    7.             └─PlumberEndpoint$new(...)
    8.               └─plumber (local) initialize(...)
    9.                 └─plumber:::make_parser(parsers)
   10.                   └─base::lapply(...)
   11.                     └─plumber (local) FUN(X[[i]], ...)
   12.                       ├─base::do.call(init_parser_func, aliases[[alias]])
   13.                       └─plumber (local) `<fn>`()
   14.                         ├─base::do.call(parser, list(...))
   15.                         └─plumber (local) `<fn>`()
  
  [ FAIL 2 | WARN 0 | SKIP 18 | PASS 1884 ]
  Error:
  ! Test failures.
  Execution halted