Running ‘testthat.R’ [7s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(VicmapR)
  
  Attaching package: 'VicmapR'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("VicmapR")
  Reading layer `melbourne' from data source 
    `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/VicmapR/shapes/melbourne.geojson' 
    using driver `GeoJSON'
  Simple feature collection with 1 feature and 8 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: 144.897 ymin: -37.85066 xmax: 144.9913 ymax: -37.77545
  Geodetic CRS:  WGS 84
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 33 ]
  
  ══ Skipped tests (18) ══════════════════════════════════════════════════════════
  • On CRAN (18): 'test-build-query.R:16:3', 'test-build-query.R:42:3',
    'test-build-query.R:50:3', 'test-build-query.R:62:3',
    'test-build-query.R:82:3', 'test-check_geoserver.R:16:3',
    'test-citation.R:16:3', 'test-citation.R:34:3', 'test-citation.R:44:3',
    'test-convert-layer-names.R:17:3', 'test-convert-layer-names.R:37:3',
    'test-convert-layer-names.R:55:3', 'test-cql-predicates.R:92:3',
    'test-filter.R:16:3', 'test-filter.R:26:3', 'test-filter.R:35:3',
    'test-listLayers.R:16:3', 'test-utils-metadata.R:16:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cql-predicates.R:29:3'): vicmap_cql_string fails when used on an uncollected (promise) object ──
  `VicmapR:::vicmap_cql_string(structure(list, class = "vicmap_promise"))` threw an error with unexpected message.
  Expected match: "you need to use collect"
  Actual message: "cannot set an attribute on a 'builtin'"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-cql-predicates.R:29:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─VicmapR:::vicmap_cql_string(structure(list, class = "vicmap_promise"))
   7. └─base::structure(list, class = "vicmap_promise")
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 33 ]
  Error: Test failures
  Execution halted