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(duckspatial)
  duckspatial 1.2.1 attached
  * Compatible with DuckDB >= v1.5.4.2
  
  Default output has changed on v1.0.0:
    duckspatial now returns lazy `duckspatial_df` (dbplyr) objects
    instead of `sf` objects.
  
  To restore the previous behaviour:
    ddbs_options(mode = 'sf')
  > library(duckdb)
  Loading required package: DBI
  > 
  > test_check("duckspatial")
  Reading layer `countries' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/duckspatial/spatial/countries.geojson' 
    using driver `GeoJSON'
  Simple feature collection with 257 features and 6 fields
  Geometry type: POLYGON
  Dimension:     XY
  Bounding box:  xmin: -178.9125 ymin: -89.9 xmax: 180 ymax: 83.65187
  Geodetic CRS:  WGS 84
  Reading layer `argentina' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/duckspatial/spatial/argentina.geojson' 
    using driver `GeoJSON'
  Simple feature collection with 1 feature and 6 fields
  Geometry type: POLYGON
  Dimension:     XY
  Bounding box:  xmin: -73.52455 ymin: -52.39755 xmax: -53.62409 ymax: -21.81793
  Geodetic CRS:  WGS 84
  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-devel-gcc/Work/build/Packages/duckdb/extensions/v1.5.4/linux_amd64/spatial.duckdb_extension.tmp-9660d6ad-5ff1-4568-b027-5e0f64faed87.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("duckspatial")
    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.                         ├─duckspatial::as_duckspatial_df(argentina_sf) at ./setup.R:15:1
   15.                         └─duckspatial:::as_duckspatial_df.sf(argentina_sf)
   16.                           └─duckspatial:::ddbs_default_conn()
   17.                             └─duckspatial::ddbs_create_conn(dbdir = "memory", ...)
   18.                               └─duckspatial::ddbs_install(conn, upgrade = upgrade, quiet = TRUE)
   19.                                 └─cli::cli_abort(...)
   20.                                   └─rlang::abort(...)
  Execution halted