Running ‘testthat.R’
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(duckh3)
  > 
  > test_check("duckh3")
  duckdb is storing downloaded extensions and secrets under ~/.duckdb:
  ℹ /data/localhost/ripley/.duckdb
  This persists across sessions and is shared with the DuckDB CLI and other clients.
  ℹ Run duckdb(shared_home = FALSE) to use a temporary directory instead.
  ℹ See ?duckdb_storage for details and alternatives.
  duckdb was built with libc++ (not libstdc++) on Linux, so DuckDB extensions are disabled:
  • Loading a prebuilt (libstdc++) extension could crash R (https://github.com/duckdb/duckdb-r/issues/1107).
  • INSTALL/LOAD of an extension will error, and automatic extension loading is off.
  ℹ Pass duckdb(allow_extensions = FALSE) to accept this and silence this message.
  ℹ Pass duckdb(allow_extensions = TRUE) to attempt loading anyway (may crash R).
  ℹ See ?duckdb for details.
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `value[[3L]]()`:
  ! Failed to load the spatial extension.
  ✖ DuckDB extension loading (INSTALL / LOAD) is disabled for this driver. ℹ
    Recreate the driver with duckdb(allow_extensions = TRUE) to enable it (this
    may crash R on a Linux build not compiled with libstdc++; see
    https://github.com/duckdb/duckdb-r/issues/1107). ℹ See ?duckdb for details. ℹ
    Context: load_extension
  ℹ The binary may be corrupt or incompatible with this platform/DuckDB version.
  ℹ Try reinstalling with `ddbs_install(extension = 'spatial', upgrade = TRUE)`
  Backtrace:
       ▆
    1. └─testthat::test_check("duckh3")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_serial(...)
    5.         └─testthat:::test_files_setup_state(...)
    6.           └─testthat::source_test_setup(".", env)
    7.             └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8.               └─base::lapply(...)
    9.                 └─testthat (local) FUN(X[[i]], ...)
   10.                   └─testthat::source_file(...)
   11.                     ├─base::withCallingHandlers(...)
   12.                     └─base::eval(exprs, env)
   13.                       └─base::eval(exprs, env)
   14.                         └─duckh3::ddbh3_default_conn() at ./setup.R:12:1
   15.                           └─duckspatial::ddbs_create_conn(...)
   16.                             └─duckspatial::ddbs_load(conn, quiet = TRUE)
   17.                               └─base::tryCatch(...)
   18.                                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   19.                                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   20.                                     └─value[[3L]](cond)
   21.                                       └─cli::cli_abort(...)
   22.                                         └─rlang::abort(...)
  Execution halted