Running ‘testthat.R’ [6s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(osmextract)
  Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright.
  Check the package website, https://docs.ropensci.org/osmextract/, for more details.
  > 
  > test_check("osmextract")
  trying URL 'https://github.com/ropensci/osmextract/raw/master/inst/its-example.osm.pbf'
  Content type 'application/octet-stream' length 40792 bytes (39 KB)
  ==================================================
  downloaded 39 KB
  
  0...10...20...30...40...50...60...70...80...90...100 - done.
  Reading layer `lines' from data source `/home/hornik/tmp/scratch/Rtmpvu0JeT/test_its-example.gpkg' using driver `GPKG'
  Simple feature collection with 189 features and 9 fields
  geometry type:  LINESTRING
  dimension:      XY
  bbox:           xmin: -1.562458 ymin: 53.80471 xmax: -1.548076 ymax: 53.81105
  geographic CRS: WGS 84
  0...10...20...30...40...50...60...70...80...90...100 - done.
  Reading layer `lines' from data source `/home/hornik/tmp/scratch/Rtmpvu0JeT/test_its-example.gpkg' using driver `GPKG'
  Simple feature collection with 189 features and 1 field
  geometry type:  LINESTRING
  dimension:      XY
  bbox:           xmin: -1.562458 ymin: 53.80471 xmax: -1.548076 ymax: 53.81105
  geographic CRS: WGS 84
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-read.R:3:3): oe_read: simplest examples work ──────────────────
  GDAL Error 4: sqlite3_open(/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg) failed: unable to open database file
  Backtrace:
   1. osmextract::oe_read(f, quiet = TRUE) test-read.R:3:2
   2. osmextract::oe_vectortranslate(...)
   3. sf::gdal_utils(...)
   4. sf:::CPL_gdalvectortranslate(...)
  ── Warning (test-read.R:3:3): oe_read: simplest examples work ──────────────────
  GDAL Error 1: GPKG driver failed to create /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg
  Backtrace:
   1. osmextract::oe_read(f, quiet = TRUE) test-read.R:3:2
   2. osmextract::oe_vectortranslate(...)
   3. sf::gdal_utils(...)
   4. sf:::CPL_gdalvectortranslate(...)
  ── Warning (test-read.R:65:3): oe_read fails with misspelled arguments ─────────
  The following arguments are probably misspelled: stringasfactor
  Backtrace:
   1. testthat::expect_error(...) test-read.R:65:2
   6. osmextract::oe_read(f, stringasfactor = FALSE, quiet = TRUE)
  ── Warning (test-read.R:65:3): oe_read fails with misspelled arguments ─────────
  GDAL Error 4: sqlite3_open(/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg) failed: unable to open database file
  Backtrace:
   1. testthat::expect_error(...) test-read.R:65:2
   6. osmextract::oe_read(f, stringasfactor = FALSE, quiet = TRUE)
   7. osmextract::oe_vectortranslate(...)
   8. sf::gdal_utils(...)
   9. sf:::CPL_gdalvectortranslate(...)
  ── Warning (test-read.R:65:3): oe_read fails with misspelled arguments ─────────
  GDAL Error 1: GPKG driver failed to create /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg
  Backtrace:
   1. testthat::expect_error(...) test-read.R:65:2
   6. osmextract::oe_read(f, stringasfactor = FALSE, quiet = TRUE)
   7. osmextract::oe_vectortranslate(...)
   8. sf::gdal_utils(...)
   9. sf:::CPL_gdalvectortranslate(...)
  ── Warning (test-read.R:75:3): oe_read fails with misspelled arguments ─────────
  GDAL Error 4: sqlite3_open(/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg) failed: unable to open database file
  Backtrace:
   1. base::file.remove(oe_read(f, download_only = TRUE)) test-read.R:75:2
   2. osmextract::oe_read(f, download_only = TRUE)
   3. osmextract::oe_vectortranslate(...)
   4. sf::gdal_utils(...)
   5. sf:::CPL_gdalvectortranslate(...)
  ── Warning (test-read.R:75:3): oe_read fails with misspelled arguments ─────────
  GDAL Error 1: GPKG driver failed to create /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/osmextract/its-example.gpkg
  Backtrace:
   1. base::file.remove(oe_read(f, download_only = TRUE)) test-read.R:75:2
   2. osmextract::oe_read(f, download_only = TRUE)
   3. osmextract::oe_vectortranslate(...)
   4. sf::gdal_utils(...)
   5. sf:::CPL_gdalvectortranslate(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-read.R:3:3): oe_read: simplest examples work ────────────────────
  Error: gdal_utils vectortranslate: an error occured
  Backtrace:
      █
   1. └─osmextract::oe_read(f, quiet = TRUE) test-read.R:3:2
   2.   └─osmextract::oe_vectortranslate(...)
   3.     └─sf::gdal_utils(...)
  ── Failure (test-read.R:65:3): oe_read fails with misspelled arguments ─────────
  `oe_read(f, stringasfactor = FALSE, quiet = TRUE)` threw an error with unexpected message.
  Expected match: "no simple features"
  Actual message: "gdal_utils vectortranslate: an error occured"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-read.R:65:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─osmextract::oe_read(f, stringasfactor = FALSE, quiet = TRUE)
   7.   └─osmextract::oe_vectortranslate(...)
   8.     └─sf::gdal_utils(...)
  ── Error (test-read.R:75:3): oe_read fails with misspelled arguments ───────────
  Error: gdal_utils vectortranslate: an error occured
  Backtrace:
      █
   1. ├─base::file.remove(oe_read(f, download_only = TRUE)) test-read.R:75:2
   2. └─osmextract::oe_read(f, download_only = TRUE)
   3.   └─osmextract::oe_vectortranslate(...)
   4.     └─sf::gdal_utils(...)
  
  [ FAIL 3 | WARN 7 | SKIP 0 | PASS 57 ]
  Error: Test failures
  Execution halted