Running ‘testthat.R’ [10s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright 2019 Province of British Columbia
  > #
  > # Licensed under the Apache License, Version 2.0 (the "License");
  > # you may not use this file except in compliance with the License.
  > # You may obtain a copy of the License at
  > #
  > # http://www.apache.org/licenses/LICENSE-2.0
  > #
  > # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
  > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  > # See the License for the specific language governing permissions and limitations under the License.
  > 
  > if (require("testthat", quietly = TRUE)) {
  +   library(bcdata)
  +   library(sf)
  +   test_check("bcdata")
  + }
  
  Attaching package: 'bcdata'
  
  The following object is masked from 'package:stats':
  
      filter
  
  Linking to GEOS 3.10.3, GDAL 3.5.0, PROJ 9.0.0; sf_use_s2() is TRUE
  [ FAIL 3 | WARN 1 | SKIP 98 | PASS 75 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • BEYOND currently not supported (1)
  • On CRAN (96)
  • RELATE not supported. https://github.com/bcgov/bcdata/pull/154 (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-bcdc-get-citation.R:17:3): bcdc_get_citation take a character and returns a bibentry ──
  Error: Bad Gateway (HTTP 502)
  Backtrace:
      ▆
   1. └─bcdata::bcdc_get_record(point_record) at test-bcdc-get-citation.R:17:2
   2.   └─r$raise_for_status()
  ── Error (test-query-geodata-base-methods.R:63:3): names.bcdc_promise returns the same as names on a data.frame ──
  Error: Bad Gateway (HTTP 502)
  Backtrace:
      ▆
   1. ├─bcdc_query_geodata(point_record) %>% head() at test-query-geodata-base-methods.R:63:2
   2. ├─utils::head(.)
   3. ├─bcdata::bcdc_query_geodata(point_record)
   4. └─bcdata:::bcdc_query_geodata.character(point_record)
   5.   └─bcdata::bcdc_get_record(record)
   6.     └─r$raise_for_status()
  ── Error (test-query-geodata-base-methods.R:73:3): names.bcdc_promise returns the same as names on a data.frame when using select ──
  Error: Bad Gateway (HTTP 502)
  Backtrace:
      ▆
   1. ├─bcdc_query_geodata(polygon_record) %>% head() %>% ... at test-query-geodata-base-methods.R:73:2
   2. ├─dplyr::select(., 1:3)
   3. ├─utils::head(.)
   4. ├─bcdata::bcdc_query_geodata(polygon_record)
   5. └─bcdata:::bcdc_query_geodata.character(polygon_record)
   6.   └─bcdata::bcdc_get_record(record)
   7.     └─r$raise_for_status()
  
  [ FAIL 3 | WARN 1 | SKIP 98 | PASS 75 ]
  Error: Test failures
  Execution halted