Running ‘testthat.R’ [6s/14s]
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(overtureR)
  > 
  > test_check("overtureR")
  [ FAIL 2 | WARN 0 | SKIP 8 | PASS 1 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-bbox.R:2:3', 'test-class.R:2:3', 'test-mem_test.R:2:3',
    'test-record.R:4:3', 'test-record.R:52:3', 'test-record.R:72:3',
    'test-record.R:92:3', 'test-st_filter.R:48:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-class.R:37:3'): class assignment works ─────────────────────────
  Error: rapi_prepare: Failed to execute statement  LOAD httpfs ; LOAD spatial ;
  Error: Invalid Input Error: Initialization function "httpfs_init" from file "/data/gannet/ripley/.local/share/R/duckdb/extensions/v1.0.0/linux_amd64_gcc4/httpfs.duckdb_extension" threw an exception: "Attempted to dereference unique_ptr that is NULL!"
  Backtrace:
       ▆
    1. └─overtureR::open_curtain("division", conn = conn, tablename = "test") at test-class.R:37:3
    2.   └─overtureR:::config_extensions(conn)
    3.     ├─DBI::dbExecute(conn, queries)
    4.     └─DBI::dbExecute(conn, queries)
    5.       ├─DBI::dbSendStatement(conn, statement, ...)
    6.       └─DBI::dbSendStatement(conn, statement, ...)
    7.         ├─DBI::dbSendQuery(conn, statement, ...)
    8.         └─duckdb::dbSendQuery(conn, statement, ...)
    9.           └─duckdb (local) .local(conn, statement, ...)
   10.             └─duckdb:::rapi_prepare(conn@conn_ref, statement)
  ── Error ('test-st_filter.R:20:3'): focus_spotlight handles all options correctly ──
  Error: rapi_prepare: Failed to execute statement  LOAD httpfs ; LOAD spatial ;
  Error: Invalid Input Error: Initialization function "httpfs_init" from file "/data/gannet/ripley/.local/share/R/duckdb/extensions/v1.0.0/linux_amd64_gcc4/httpfs.duckdb_extension" threw an exception: "Attempted to dereference unique_ptr that is NULL!"
  Backtrace:
       ▆
    1. └─overtureR:::focus_spotlight(con, sf_obj) at test-st_filter.R:20:3
    2.   └─overtureR::sf_as_dbplyr(...)
    3.     └─overtureR:::config_extensions(conn)
    4.       ├─DBI::dbExecute(conn, queries)
    5.       └─DBI::dbExecute(conn, queries)
    6.         ├─DBI::dbSendStatement(conn, statement, ...)
    7.         └─DBI::dbSendStatement(conn, statement, ...)
    8.           ├─DBI::dbSendQuery(conn, statement, ...)
    9.           └─duckdb::dbSendQuery(conn, statement, ...)
   10.             └─duckdb (local) .local(conn, statement, ...)
   11.               └─duckdb:::rapi_prepare(conn@conn_ref, statement)
  
  [ FAIL 2 | WARN 0 | SKIP 8 | PASS 1 ]
  Error: Test failures
  Execution halted
  Warning messages:
  1: Connection is garbage-collected, use dbDisconnect() to avoid this. 
  2: Connection is garbage-collected, use dbDisconnect() to avoid this.