Running ‘test-all.R’ [32s/42s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > library("geojsonio")
  
  Attaching package: 'geojsonio'
  
  The following object is masked from 'package:base':
  
      pretty
  
  > test_check("geojsonio")
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e66043256.geojson", layer: "file255e66043256"
  with 2 features
  It has 6 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e66043256.geojson", layer: "file255e66043256"
  with 2 features
  It has 6 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e6f0b0117.geojson", layer: "file255e6f0b0117"
  with 1 features
  It has 1 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e45f728d6.geojson", layer: "file255e45f728d6"
  with 2 features
  It has 1 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e45f728d6.geojson", layer: "file255e45f728d6"
  with 2 features
  It has 1 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e7f3debb0.geojson", layer: "file255e7f3debb0"
  with 2 features
  It has 6 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e7f3debb0.geojson", layer: "file255e7f3debb0"
  with 2 features
  It has 6 fields
  ── 1. Error: (unknown) (@test-mapleaflet.R#3)  ─────────────────────────────────
  there is no package called 'leaflet'
  1: library("leaflet") at testthat/test-mapleaflet.R:3
  2: stop(txt, domain = NA)
  
  ── 2. Error: onload for turf-extent worked (@test-onload.R#9)  ─────────────────
  could not find function "JS"
  1: expect_true(any(grepl("extent", ext$get(JS("Object.keys(global)"))))) at testthat/test-onload.R:9
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: grepl("extent", ext$get(JS("Object.keys(global)")))
  5: ext$get(JS("Object.keys(global)"))
  6: stopifnot(is.character(name))
  
  OGR data source with driver: GeoJSON 
  Source: "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/geojsonio/examples/us_states.topojson", layer: "states"
  with 51 features
  It has 1 fields
  OGR data source with driver: GeoJSON 
  Source: "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/geojsonio/examples/us_states.topojson", layer: "states"
  with 51 features
  It has 1 fields
  OGR data source with driver: GeoJSON 
  Source: "/tmp/RtmpBlNI4g/file255e6a2e9d28.json", layer: "TopoJSON"
  with 1 features
  It has 1 fields
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 460 SKIPPED: 31 FAILED: 2
  1. Error: (unknown) (@test-mapleaflet.R#3) 
  2. Error: onload for turf-extent worked (@test-onload.R#9) 
  
  Error: testthat unit tests failed
  Execution halted