Running ‘testthat.R’ [5s/6s]
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")
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `ddbs_install()`:
  ! Failed to install the spatial extension.
  ✖ core: Invalid Error: IO Error: Cannot open file
    "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/duckdb/extensions/v1.5.4/linux_amd64/spatial.duckdb_extension.tmp-15b409c8-868b-48f7-b985-3136d943348e.duckdb_extension":
    Read-only file system ℹ Context: rapi_execute ℹ Error type: INVALID
  ✖ community: Invalid Error: HTTP Error: Failed to download extension "spatial"
    at URL
    "http://community-extensions.duckdb.org/v1.5.4/linux_amd64/spatial.duckdb_extension.gz"
    (HTTP 404) Extension "spatial" is an existing extension.  For more info,
    visit
    https://duckdb.org/docs/stable/extensions/troubleshooting?version=v1.5.4&platform=linux_amd64&extension=spatial
    ℹ Context: rapi_execute ℹ Error type: INVALID
  ℹ It might not be available for this version of DuckDB, or the install location
    may not be writable.
  ℹ Check that the extension name is correct:
    <https://duckdb.org/docs/extensions/overview>
  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_install(conn, upgrade = upgrade, quiet = TRUE)
   17.                               └─cli::cli_abort(...)
   18.                                 └─rlang::abort(...)
  Execution halted