Running ‘testthat.R’ [15s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(bcdata)
  
  Attaching package: 'bcdata'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("bcdata")
  [ FAIL 1 | WARN 0 | SKIP 104 | PASS 78 ]
  
  ══ Skipped tests (104) ═════════════════════════════════════════════════════════
  • BEYOND currently not supported (1): 'test-geom-operators.R:96:3'
  • On CRAN (102): 'test-bcdc-get-citation.R:15:3', 'test-browse.R:15:3',
    'test-cql-string.R:92:3', 'test-describe-feature.R:14:3',
    'test-describe-feature.R:22:3', 'test-describe-feature.R:36:3',
    'test-describe-feature.R:44:3', 'test-describe-feature.R:52:3',
    'test-describe-feature.R:60:3', 'test-describe-feature.R:68:3',
    'test-edge-cases.R:3:3', 'test-geom-operators.R:20:3',
    'test-geom-operators.R:29:3', 'test-geom-operators.R:38:3',
    'test-geom-operators.R:53:3', 'test-geom-operators.R:82:3',
    'test-geom-operators.R:112:3', 'test-geom-operators.R:127:3',
    'test-geom-operators.R:141:3', 'test-get-data.R:15:3',
    'test-get-data.R:27:3', 'test-get-data.R:72:3', 'test-get-data.R:79:3',
    'test-get-data.R:92:3', 'test-get-data.R:102:3', 'test-get-data.R:122:3',
    'test-get-data.R:134:3', 'test-get-data.R:143:3', 'test-get-data.R:152:3',
    'test-get-data.R:161:3', 'test-get-data.R:174:3', 'test-get-data.R:187:3',
    'test-get-data.R:196:3', 'test-get-data.R:209:3', 'test-get-data.R:218:3',
    'test-get-data.R:227:3', 'test-get-data.R:236:3', 'test-get-data.R:245:3',
    'test-get-data.R:265:3', 'test-get_record.R:14:3', 'test-get_record.R:41:3',
    'test-get_record.R:59:3', 'test-get_record.R:68:3', 'test-get_record.R:75:3',
    'test-get_record.R:84:3', 'test-get_record.R:91:3', 'test-get_record.R:99:3',
    'test-get_record.R:111:3', 'test-get_record.R:119:3',
    'test-get_record.R:129:3', 'test-get_record.R:153:3', 'test-options.R:15:3',
    'test-options.R:23:3', 'test-options.R:36:3', 'test-options.R:48:3',
    'test-options.R:54:3', 'test-print-methods.R:14:3',
    'test-print-methods.R:21:3', 'test-print-methods.R:28:3',
    'test-print-methods.R:35:3', 'test-print-methods.R:43:3',
    'test-print-methods.R:50:3', 'test-query-geodata-base-methods.R:4:3',
    'test-query-geodata-base-methods.R:24:3',
    'test-query-geodata-base-methods.R:45:3',
    'test-query-geodata-base-methods.R:61:3',
    'test-query-geodata-base-methods.R:73:3',
    'test-query-geodata-collect.R:14:3', 'test-query-geodata-collect.R:22:3',
    'test-query-geodata-collect.R:30:3', 'test-query-geodata-collect.R:43:3',
    'test-query-geodata-collect.R:87:3', 'test-query-geodata-collect.R:102:3',
    'test-query-geodata-collect.R:112:3', 'test-query-geodata-filter.R:15:3',
    'test-query-geodata-filter.R:26:3', 'test-query-geodata-filter.R:37:3',
    'test-query-geodata-filter.R:138:3', 'test-query-geodata-filter.R:151:3',
    'test-query-geodata-filter.R:174:3', 'test-query-geodata-filter.R:196:3',
    'test-query-geodata-filter.R:212:3', 'test-query-geodata-filter.R:228:3',
    'test-query-geodata-filter.R:241:3', 'test-query-geodata-filter.R:252:3',
    'test-query-geodata-filter.R:282:3', 'test-query-geodata-filter.R:304:3',
    'test-query-geodata-mutate.R:14:3', 'test-query-geodata-select.R:15:3',
    'test-query-geodata-select.R:25:3', 'test-query-geodata-select.R:37:3',
    'test-query-geodata-select.R:52:3', 'test-query-geodata-select.R:62:3',
    'test-query-geodata.R:14:3', 'test-query-geodata.R:32:3',
    'test-query-geodata.R:42:3', 'test-query-geodata.R:51:3',
    'test-query-geodata.R:59:3', 'test-query-geodata.R:66:3',
    'test-search.R:14:3', 'test-search.R:31:3', 'test-utils.R:59:3'
  • RELATE not supported. https://github.com/bcgov/bcdata/pull/154 (1):
    'test-geom-operators.R:67:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cql-string.R:23:3'): bcdc_cql_string fails when used on an uncollected (promise) object ──
  Error in `attributes(.Data) <- c(attributes(.Data), attrib)`: Cannot modify attributes on primitive functions
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-cql-string.R:23:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. ├─bcdata:::bcdc_cql_string(structure(list, class = "bcdc_promise"))
   8. └─base::structure(list, class = "bcdc_promise")
  
  [ FAIL 1 | WARN 0 | SKIP 104 | PASS 78 ]
  Error: Test failures
  Execution halted