Running ‘testthat.R’ [7s/36s]
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.1.2 attached
  * Compatible with DuckDB >= v1.5.1
  
  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(duckspatial.mode = 'sf')
  > library(duckdb)
  Loading required package: DBI
  > 
  > test_check("duckspatial")
  Reading layer `countries' from data source 
    `/data/gannet/ripley/R/packages/tests-clang/duckspatial.Rcheck/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 
    `/data/gannet/ripley/R/packages/tests-clang/duckspatial.Rcheck/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 `duckdb_result()`:
  ! Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/data/gannet/ripley/R/test-clang/duckdb/extensions/v1.5.4/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  ℹ Context: rapi_execute
  ℹ Error type: INVALID
  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_load(conn, quiet = TRUE)
   19. │                               ├─base::suppressMessages(DBI::dbExecute(conn, glue::glue("LOAD {extension};")))
   20. │                               │ └─base::withCallingHandlers(...)
   21. │                               ├─DBI::dbExecute(conn, glue::glue("LOAD {extension};"))
   22. │                               └─DBI::dbExecute(conn, glue::glue("LOAD {extension};"))
   23. │                                 ├─DBI::dbSendStatement(conn, statement, ...)
   24. │                                 └─DBI::dbSendStatement(conn, statement, ...)
   25. │                                   ├─DBI::dbSendQuery(conn, statement, ...)
   26. │                                   └─duckdb::dbSendQuery(conn, statement, ...)
   27. │                                     └─duckdb (local) .local(conn, statement, ...)
   28. │                                       └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   29. │                                         └─duckdb:::duckdb_execute(res)
   30. │                                           └─duckdb:::rethrow_rapi_execute(...)
   31. │                                             ├─rlang::try_fetch(...)
   32. │                                             │ ├─base::tryCatch(...)
   33. │                                             │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   34. │                                             │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   35. │                                             │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   36. │                                             │ └─base::withCallingHandlers(...)
   37. │                                             └─duckdb:::rapi_execute(stmt, convert_opts)
   38. ├─duckdb (local) `<fn>`(...)
   39. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   40. │   └─rlang:::signal_abort(cnd, .file)
   41. │     └─base::signalCondition(cnd)
   42. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   43.   └─handlers[[1L]](cnd)
   44.     └─duckdb:::rethrow_error_from_rapi(e, call)
   45.       └─rlang::abort(msg, call = call)
  Execution halted