Running ‘test-all.R’ [71s/75s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library("geojson")
  
  Attaching package: 'geojson'
  
  The following object is masked from 'package:graphics':
  
      polygon
  
  > test_check("geojson")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 448 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-stream_in_geojson.R:8:3): stream_in_geojson ─────────────────────
  Error: jq: error: Invalid numeric literal at EOF at line 1, column 1 (while parsing '5') at <builtin>, line 1:
  def halt_error: halt_error(5);                           
  Backtrace:
       ▆
    1. └─geojson:::stream_in_geojson(con, verbose = FALSE) at test-stream_in_geojson.R:8:2
    2.   ├─geojson counter(unlist(unname(Map(to_feature, cleanpage, extract_features(cleanpage)))))
    3.   ├─base::unlist(unname(Map(to_feature, cleanpage, extract_features(cleanpage))))
    4.   ├─base::unname(Map(to_feature, cleanpage, extract_features(cleanpage)))
    5.   ├─base::Map(to_feature, cleanpage, extract_features(cleanpage))
    6.   │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    7.   └─geojson:::extract_features(cleanpage)
    8.     ├─base::tolower(cchar(jqr::jq(w, ".type")))
    9.     ├─geojson:::cchar(jqr::jq(w, ".type"))
   10.     │ └─base::gsub("\"", "", as.character(x))
   11.     │   └─base::is.factor(x)
   12.     ├─jqr::jq(w, ".type")
   13.     └─jqr:::jq.character(w, ".type")
   14.       ├─base::structure(jqr(x, query, flags), class = c("jqson", "character"))
   15.       ├─jqr:::jqr(x, query, flags)
   16.       └─jqr:::jqr.default(x, query, flags)
   17.         └─jqr::jqr_new(query, flags = flags)
  ── Error (test-tibbles.R:13:3): tibbles work with multipolygon inputs ──────────
  Error: jq: error: Invalid numeric literal at EOF at line 1, column 1 (while parsing '5') at <builtin>, line 1:
  def halt_error: halt_error(5);                           
  Backtrace:
       ▆
    1. ├─geojson::multipolygon(x) at test-tibbles.R:13:2
    2. └─geojson:::multipolygon.character(x)
    3.   └─geojson:::as_x("MultiPolygon", x)
    4.     ├─geojson:::asc(jqr::jq(unclass(x), ".type"))
    5.     │ └─stringi::stri_replace_all_regex(x, "\\\"|\\[|\\]", "")
    6.     ├─jqr::jq(unclass(x), ".type")
    7.     └─jqr:::jq.character(unclass(x), ".type")
    8.       ├─base::structure(jqr(x, query, flags), class = c("jqson", "character"))
    9.       ├─jqr:::jqr(x, query, flags)
   10.       └─jqr:::jqr.default(x, query, flags)
   11.         └─jqr::jqr_new(query, flags = flags)
  ── Error (test-to_geojson.R:41:3): to_geojson works for all types ──────────────
  Error: jq: error: Invalid numeric literal at EOF at line 1, column 1 (while parsing '5') at <builtin>, line 1:
  def halt_error: halt_error(5);                           
  Backtrace:
       ▆
    1. ├─testthat::expect_is(to_geojson(pt), "geopoint") at test-to_geojson.R:41:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─geojson::to_geojson(pt)
    5.   ├─geojson:::asc(jqr::jq(unclass(x), ".type"))
    6.   │ └─stringi::stri_replace_all_regex(x, "\\\"|\\[|\\]", "")
    7.   ├─jqr::jq(unclass(x), ".type")
    8.   └─jqr:::jq.character(unclass(x), ".type")
    9.     ├─base::structure(jqr(x, query, flags), class = c("jqson", "character"))
   10.     ├─jqr:::jqr(x, query, flags)
   11.     └─jqr:::jqr.default(x, query, flags)
   12.       └─jqr::jqr_new(query, flags = flags)
  ── Failure (test-to_geojson.R:53:3): to_geojson fails on incorrect type ────────
  `to_geojson("{\"type\": \"foo\"}")` threw an error with unexpected message.
  Expected match: "Invalid GeoJSON type: foo"
  Actual message: "jq: error: Invalid numeric literal at EOF at line 1, column 1 (while parsing '5') at <builtin>, line 1:\ndef halt_error: halt_error(5);                           "
  Backtrace:
       ▆
    1. ├─testthat::expect_error(to_geojson("{\"type\": \"foo\"}"), "Invalid GeoJSON type: foo") at test-to_geojson.R:53:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─geojson::to_geojson("{\"type\": \"foo\"}")
    7.   ├─geojson:::asc(jqr::jq(unclass(x), ".type"))
    8.   │ └─stringi::stri_replace_all_regex(x, "\\\"|\\[|\\]", "")
    9.   ├─jqr::jq(unclass(x), ".type")
   10.   └─jqr:::jq.character(unclass(x), ".type")
   11.     ├─base::structure(jqr(x, query, flags), class = c("jqson", "character"))
   12.     ├─jqr:::jqr(x, query, flags)
   13.     └─jqr:::jqr.default(x, query, flags)
   14.       └─jqr::jqr_new(query, flags = flags)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 448 ]
  Error: Test failures
  In addition: Warning message:
  In for (i in seq_len(n)) { :
    closing unused connection 4 (/tmp/Rtmpn0FRNs/working_dir/RtmpjBxonV/file2d29786919034f)
  Execution halted