Running ‘testthat.R’ [31s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dbSpatial)
  > 
  > test_check("dbSpatial")
  Saving _problems/test-extract-15.R
  Saving _problems/test-spatial-functions-15.R
  Saving _problems/test-spatial-functions-35.R
  Saving _problems/test-spatial-functions-70.R
  Saving _problems/test-spatial-functions-95.R
  Saving _problems/test-spatial-functions-117.R
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extract.R:8:3'): $ extracts column values ──────────────────────
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-extract.R:8:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  ── Error ('test-spatial-functions.R:8:3'): dbSpatial constructor works ─────────
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Attempted to dereference shared_ptr that is NULL!"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-spatial-functions.R:8:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  ── Error ('test-spatial-functions.R:28:3'): basic spatial functions work ───────
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-spatial-functions.R:28:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  ── Error ('test-spatial-functions.R:63:3'): st_geometrytype returns expected types lazily ──
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-spatial-functions.R:63:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  ── Error ('test-spatial-functions.R:88:3'): st_join works with different predicates ──
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-spatial-functions.R:88:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  ── Error ('test-spatial-functions.R:110:3'): unsupported args warn ─────────────
  Error in `duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)`: Invalid Error: Invalid Input Error: Initialization function "spatial_duckdb_cpp_init" from file "/tmp/RtmpYMKsvc/working_dir/RtmpZbYKcD/file76a764e35e8ba/R/duckdb/extensions/v1.5.2/linux_amd64/spatial.duckdb_extension" threw an exception: "Missing DB manager"
  i Context: rapi_execute
  i Error type: INVALID
  Backtrace:
       ▆
    1. ├─dbSpatial::dbSpatial(...) at test-spatial-functions.R:110:3
    2. │ ├─base::suppressMessages(loadSpatial(conn = conn))
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─dbSpatial::loadSpatial(conn = conn)
    5. │   ├─DBI::dbExecute(conn, query)
    6. │   └─DBI::dbExecute(conn, query)
    7. │     ├─DBI::dbSendStatement(conn, statement, ...)
    8. │     └─DBI::dbSendStatement(conn, statement, ...)
    9. │       ├─DBI::dbSendQuery(conn, statement, ...)
   10. │       └─duckdb::dbSendQuery(conn, statement, ...)
   11. │         └─duckdb (local) .local(conn, statement, ...)
   12. │           └─duckdb:::duckdb_result(connection = conn, stmt_lst = stmt_lst, arrow = arrow)
   13. │             └─duckdb:::duckdb_execute(res)
   14. │               └─duckdb:::rethrow_rapi_execute(...)
   15. │                 ├─rlang::try_fetch(...)
   16. │                 │ ├─base::tryCatch(...)
   17. │                 │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18. │                 │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19. │                 │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   20. │                 │ └─base::withCallingHandlers(...)
   21. │                 └─duckdb:::rapi_execute(stmt, convert_opts)
   22. ├─duckdb (local) `<fn>`(...)
   23. │ └─rlang::abort(error_parts, class = "duckdb_error", !!!fields)
   24. │   └─rlang:::signal_abort(cnd, .file)
   25. │     └─base::signalCondition(cnd)
   26. └─rlang (local) `<fn>`(`<dckdb_rr>`)
   27.   └─handlers[[1L]](cnd)
   28.     └─duckdb:::rethrow_error_from_rapi(e, call)
   29.       └─rlang::abort(msg, call = call)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted