Running ‘testthat.R’ [110s/71s]
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(btw)
  > 
  > local_reproducible_output()
  > 
  > test_check("btw")
  Starting 2 test processes.
  > test-tool-run.R: No personal access token (PAT) available.
  > test-tool-run.R: Obtain a PAT from here:
  > test-tool-run.R: https://github.com/settings/tokens
  > test-tool-run.R: For more on what to do with the PAT, see ?gh_whoami.
  > test-tool-pkg-src.R: i Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc4276148...
  > test-tool-pkg-src.R: duckdb is storing downloaded extensions and secrets under ~/.duckdb:
  > test-tool-pkg-src.R: i /data/localhost/ripley/.duckdb
  > test-tool-pkg-src.R: This persists across sessi
  > test-tool-pkg-src.R: ons and is shared with the DuckDB CLI and other clients.
  > test-tool-pkg-src.R: i Run duckdb(shared_home = FALSE) to use a temporary directory instead.
  > test-tool-pkg-src.R: i See ?duckdb_storage for details and alternatives.
  > test-tool-pkg-src.R: duckdb was built with libc++ (not libstdc++) on Linux, so DuckDB extensions are disabled:
  > test-tool-pkg-src.R: * Loading a prebuilt (libstdc++) extension could crash R (https://github.com/duckdb/duckdb-r/issues/1107).
  > test-tool-pkg-src.R: * INSTALL/LOAD of an extension will error, and automatic extension loading is off.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = FALSE) to accept this and silence this message.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = TRUE) to attempt loading anyway (may crash R).
  > test-tool-pkg-src.R: i See ?duckdb for details.
  > test-tool-pkg-src.R: x Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc4276148...
  > test-tool-pkg-src.R: 
  > test-tool-pkg-src.R: i Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc44dc581...
  > test-tool-pkg-src.R: duckdb is storing downloaded extensions and secrets under ~/.duckdb:
  > test-tool-pkg-src.R: i /data/localhost/ripley/.duckdb
  > test-tool-pkg-src.R: This persists across sessions and is shared with the DuckDB CLI and other clients.
  > test-tool-pkg-src.R: i Run duckdb(shared_home = FALSE) to use a temporary directory instead.
  > test-tool-pkg-src.R: i See ?duckdb_storage for details and alternatives.
  > test-tool-pkg-src.R: duckdb was built with libc++ (not libstdc++) on Linux, so DuckDB extensions are disabled:
  > test-tool-pkg-src.R: * Loading a prebuilt (libstdc++) extension could crash R (https://github.com/duckdb/duckdb-r/issues/1107).
  > test-tool-pkg-src.R: * INSTALL/LOAD of an extension will error, and automatic extension loading is off.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = FALSE) to accept this and silence this message.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = TRUE) to attempt loading anyway (may crash R).
  > test-tool-pkg-src.R: i See ?duckdb for details.
  > test-tool-pkg-src.R: x Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc44dc581...
  > test-tool-pkg-src.R: 
  > test-tool-pkg-src.R: i Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc74d076a...
  > test-tool-pkg-src.R: duckdb is storing downloaded extensions and secrets under ~/.duckdb:
  > test-tool-pkg-src.R: i /data/localhost/ripley/.duckdb
  > test-tool-pkg-src.R: This persists across sessions and is shared with the DuckDB CLI and other clients.
  > test-tool-pkg-src.R: i Run duckdb(shared_home = FALSE) to use a temporary directory instead.
  > test-tool-pkg-src.R: i See ?duckdb_storage for details and alternatives.
  > test-tool-pkg-src.R: duckdb was built with libc++ (not libstdc++) on Linux, so DuckDB extensions are disabled:
  > test-tool-pkg-src.R: * Loading a prebuilt (libstdc++) extension could crash R (https://github.com/duckdb/duckdb-r/issues/1107).
  > test-tool-pkg-src.R: * INSTALL/LOAD of an extension will error, and automatic extension loading is off.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = FALSE) to accept this and silence this message.
  > test-tool-pkg-src.R: i Pass duckdb(allow_extensions = TRUE) to attempt loading anyway (may crash R).
  > test-tool-pkg-src.R: i See ?duckdb for details.
  > test-tool-pkg-src.R: x Indexing files in '/tmp/RtmpiEpZbC/working_dir/RtmpqErjDi/file1975fc74d076a...
  > test-tool-pkg-src.R: 
  Saving _problems/test-tool-pkg-src-382.R
  Saving _problems/test-tool-pkg-src-416.R
  Saving _problems/test-tool-pkg-src-432.R
  [ FAIL 3 | WARN 1 | SKIP 137 | PASS 1885 ]
  
  == Skipped tests (137) =========================================================
  * On CRAN (60): 'test-btw.R:7:1', 'test-clipboard.R:1:1',
    'test-deprecated.R:19:3', 'test-deprecated.R:111:3', 'test-btw_this.R:42:1',
    'test-btw_this.R:474:3', 'test-btw_this.R:646:1', 'test-btw_this.R:663:1',
    'test-edit_btw_md.R:1:1', 'test-edit_btw_md.R:27:1',
    'test-edit_btw_md.R:39:1', 'test-edit_btw_md.R:54:1',
    'test-edit_btw_md.R:70:1', 'test-edit_btw_md.R:87:1',
    'test-edit_btw_md.R:104:1', 'test-edit_btw_md.R:123:1',
    'test-edit_btw_md.R:143:1', 'test-edit_btw_md.R:161:1',
    'test-edit_btw_md.R:183:1', 'test-edit_btw_md.R:330:1',
    'test-edit_btw_md.R:357:1', 'test-tool-cran.R:42:3', 'test-tool-cran.R:55:3',
    'test-tool-docs.R:23:1', 'test-tool-docs.R:31:3', 'test-tool-docs.R:59:3',
    'test-tool-docs.R:78:1', 'test-tool-env.R:15:1',
    'test-tool-files-edit.R:280:1', 'test-tool-files-edit.R:313:1',
    'test-tool-files-edit.R:351:1', 'test-tool-files-edit.R:382:1',
    'test-tool-files-edit.R:412:1', 'test-tool-files-edit.R:449:1',
    'test-tool-files-edit.R:491:1', 'test-tool-files-patch.R:416:1',
    'test-tool-files-patch.R:441:1', 'test-tool-files-write.R:1:1',
    'test-tool-git.R:1:1', 'test-tool-git.R:67:1', 'test-tool-git.R:107:1',
    'test-tool-git.R:132:1', 'test-tool-git.R:166:1', 'test-tool-git.R:191:1',
    'test-tool-git.R:214:1', 'test-tool-git.R:345:1', 'test-tool-ide.R:1:1',
    'test-tool-pkg-devtools-covr.R:295:1', 'test-tool-run.R:190:1',
    'test-tool-sessioninfo.R:3:1', 'test-tool-sessioninfo.R:40:1',
    'test-tool-web.R:23:3', 'test-tool-web.R:54:3', 'test-tool-web.R:107:3',
    'test-tool-web.R:128:3', 'test-tool-web.R:164:3', 'test-tool-web.R:206:1',
    'test-tool-web.R:229:3', 'test-utils-md.R:1:1', 'test-utils.R:383:1'
  * On Linux (22): 'test-btw.R:2:3', 'test-btw_client.R:33:5',
    'test-btw_client.R:105:3', 'test-btw_client.R:259:5',
    'test-btw_client.R:270:5', 'test-btw_client.R:352:5',
    'test-btw_client.R:391:5', 'test-btw_this.R:4:3', 'test-btw_this.R:386:3',
    'test-btw_this.R:422:3', 'test-tool-cran.R:23:3', 'test-tool-cran.R:72:3',
    'test-tool-docs.R:19:3', 'test-tool-env-df.R:1:1', 'test-tool-env.R:2:3',
    'test-tool-files-list.R:19:3', 'test-tool-files-read.R:43:3',
    'test-tool-ide.R:177:3', 'test-tool-ide.R:199:3',
    'test-tool-docs-news.R:148:3', 'test-tool_skills.R:1303:3',
    'test-utils.R:7:3'
  * btw CLI script not found (53): 'test-cli.R:43:3', 'test-cli.R:52:3',
    'test-cli.R:61:3', 'test-cli.R:69:3', 'test-cli.R:76:3', 'test-cli.R:83:3',
    'test-cli.R:92:3', 'test-cli.R:101:3', 'test-cli.R:107:3',
    'test-cli.R:114:3', 'test-cli.R:123:3', 'test-cli.R:131:3',
    'test-cli.R:140:3', 'test-cli.R:148:3', 'test-cli.R:159:3',
    'test-cli.R:166:3', 'test-cli.R:172:3', 'test-cli.R:183:3',
    'test-cli.R:191:3', 'test-cli.R:199:3', 'test-cli.R:211:3',
    'test-cli.R:224:3', 'test-cli.R:232:3', 'test-cli.R:238:3',
    'test-cli.R:255:3', 'test-cli.R:272:3', 'test-cli.R:293:3',
    'test-cli.R:305:3', 'test-cli.R:316:3', 'test-cli.R:327:3',
    'test-cli.R:345:3', 'test-cli.R:359:3', 'test-cli.R:365:3',
    'test-cli.R:402:3', 'test-cli.R:429:3', 'test-cli.R:441:3',
    'test-cli.R:447:3', 'test-cli.R:466:3', 'test-cli.R:471:3',
    'test-cli.R:479:3', 'test-cli.R:488:3', 'test-cli.R:501:3',
    'test-cli.R:515:3', 'test-cli.R:536:3', 'test-cli.R:548:3',
    'test-cli.R:566:3', 'test-cli.R:575:3', 'test-cli.R:583:3',
    'test-cli.R:605:3', 'test-cli.R:617:3', 'test-cli.R:623:3',
    'test-cli.R:634:3', 'test-cli.R:643:3'
  * {bsicons} is not installed (1): 'test-tool-agent-custom.R:533:3'
  * {phosphoricons} is not installed (1): 'test-tool-agent-custom.R:553:3'
  
  == Failed tests ================================================================
  -- Error ('test-tool-pkg-src.R:382:3'): btw_tool_pkg_src_search_impl searches materialized source for binary-installed packages --
  Error in `dbSendQuery(conn, statement, ...)`: DuckDB extension loading (INSTALL / LOAD) is disabled for this driver.
  i 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).
  i See ?duckdb for details.
  i Context: load_extension
  Backtrace:
       x
    1. +-btw:::btw_tool_pkg_src_search_impl("tools", "file.path") at test-tool-pkg-src.R:382:3
    2. | \-base::lapply(...)
    3. |   \-btw (local) FUN(X[[i]], ...)
    4. |     \-btw (local) search_fn(...)
    5. |       \-btw (local) .db_create_local_file_index()
    6. |         \-btw:::db_create_local_files(path, extensions, exclusions, restrict_to_wd = restrict_to_wd)
    7. |           +-DBI::dbExecute(con, "INSTALL fts")
    8. |           \-DBI::dbExecute(con, "INSTALL fts")
    9. |             +-DBI::dbSendStatement(conn, statement, ...)
   10. |             \-DBI::dbSendStatement(conn, statement, ...)
   11. |               +-DBI::dbSendQuery(conn, statement, ...)
   12. |               \-duckdb::dbSendQuery(conn, statement, ...)
   13. |                 \-duckdb (local) .local(conn, statement, ...)
   14. |                   \-duckdb:::rethrow_rapi_prepare(conn@conn_ref, statement, env)
   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_prepare(conn, query, env)
   22. +-duckdb (local) `<fn>`("load_extension", "")
   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-tool-pkg-src.R:416:3'): btw_tool_pkg_src_search_impl preserves exact operator names --
  Error in `dbSendQuery(conn, statement, ...)`: DuckDB extension loading (INSTALL / LOAD) is disabled for this driver.
  i 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).
  i See ?duckdb for details.
  i Context: load_extension
  Backtrace:
       x
    1. +-btw:::btw_tool_pkg_src_search_impl("vctrs", "vec_cast(value, x)") at test-tool-pkg-src.R:416:3
    2. | \-base::lapply(...)
    3. |   \-btw (local) FUN(X[[i]], ...)
    4. |     \-btw (local) search_fn(...)
    5. |       \-btw (local) .db_create_local_file_index()
    6. |         \-btw:::db_create_local_files(path, extensions, exclusions, restrict_to_wd = restrict_to_wd)
    7. |           +-DBI::dbExecute(con, "INSTALL fts")
    8. |           \-DBI::dbExecute(con, "INSTALL fts")
    9. |             +-DBI::dbSendStatement(conn, statement, ...)
   10. |             \-DBI::dbSendStatement(conn, statement, ...)
   11. |               +-DBI::dbSendQuery(conn, statement, ...)
   12. |               \-duckdb::dbSendQuery(conn, statement, ...)
   13. |                 \-duckdb (local) .local(conn, statement, ...)
   14. |                   \-duckdb:::rethrow_rapi_prepare(conn@conn_ref, statement, env)
   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_prepare(conn, query, env)
   22. +-duckdb (local) `<fn>`("load_extension", "")
   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-tool-pkg-src.R:432:3'): btw_tool_pkg_src_search_impl combines results across multiple terms --
  Error in `dbSendQuery(conn, statement, ...)`: DuckDB extension loading (INSTALL / LOAD) is disabled for this driver.
  i 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).
  i See ?duckdb for details.
  i Context: load_extension
  Backtrace:
       x
    1. +-btw:::btw_tool_pkg_src_search_impl("tools", c("file.path", "toRd")) at test-tool-pkg-src.R:432:3
    2. | \-base::lapply(...)
    3. |   \-btw (local) FUN(X[[i]], ...)
    4. |     \-btw (local) search_fn(...)
    5. |       \-btw (local) .db_create_local_file_index()
    6. |         \-btw:::db_create_local_files(path, extensions, exclusions, restrict_to_wd = restrict_to_wd)
    7. |           +-DBI::dbExecute(con, "INSTALL fts")
    8. |           \-DBI::dbExecute(con, "INSTALL fts")
    9. |             +-DBI::dbSendStatement(conn, statement, ...)
   10. |             \-DBI::dbSendStatement(conn, statement, ...)
   11. |               +-DBI::dbSendQuery(conn, statement, ...)
   12. |               \-duckdb::dbSendQuery(conn, statement, ...)
   13. |                 \-duckdb (local) .local(conn, statement, ...)
   14. |                   \-duckdb:::rethrow_rapi_prepare(conn@conn_ref, statement, env)
   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_prepare(conn, query, env)
   22. +-duckdb (local) `<fn>`("load_extension", "")
   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 3 | WARN 1 | SKIP 137 | PASS 1885 ]
  Error:
  ! Test failures.
  Execution halted
  Ran 8/8 deferred expressions