Running 'testthat.R' [28s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("DBI")
  > 
  > test_check("duckdb")
  Loading required package: duckdb
  [ FAIL 5 | WARN 0 | SKIP 20 | PASS 275 ]
  
  == Skipped tests ===============================================================
  * DUCKDB_R_TEST_EXTENSION_REQUIRED not set, hence not testing extensions (1)
  * On CRAN (16)
  * On Windows (1)
  * arrow cannot be loaded (1)
  * empty test (1)
  
  == Failed tests ================================================================
  -- Error ('test_backend-dbplyr__duckdb_connection.R:22'): dbplyr generic scalars translated correctly --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_equal(translate(tolower("HELLO")), sql("LOWER('HELLO')")) at test_backend-dbplyr__duckdb_connection.R:22:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-duckdb (local) translate(tolower("HELLO"))
    5. | \-dbplyr::translate_sql(..., con = con) at test_backend-dbplyr__duckdb_connection.R:12:15
    6. |   \-dbplyr::translate_sql_(...)
    7. |     \-base::lapply(...)
    8. |       \-dbplyr (local) FUN(X[[i]], ...)
    9. |         +-dbplyr::escape(eval_tidy(x, mask), con = con)
   10. |         \-rlang::eval_tidy(x, mask)
   11. +-dbplyr (local) tolower("HELLO")
   12. | \-dbplyr::build_sql(sql(f), args)
   13. \-base::loadNamespace(x)
   14.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test_backend-dbplyr__duckdb_connection.R:46'): duckdb custom scalars translated correctly --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_equal(translate(35.8^2.51), sql("POW(35.8, 2.51)")) at test_backend-dbplyr__duckdb_connection.R:46:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-duckdb (local) translate(35.8^2.51)
    5. | \-dbplyr::translate_sql(..., con = con) at test_backend-dbplyr__duckdb_connection.R:39:15
    6. |   \-dbplyr::translate_sql_(...)
    7. |     \-base::lapply(...)
    8. |       \-dbplyr (local) FUN(X[[i]], ...)
    9. |         +-dbplyr::escape(eval_tidy(x, mask), con = con)
   10. |         \-rlang::eval_tidy(x, mask)
   11. +-35.8^2.51
   12. | \-dbplyr::build_sql(sql(f), args)
   13. \-base::loadNamespace(x)
   14.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test_backend-dbplyr__duckdb_connection.R:116'): custom lubridate functions translated correctly --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_equal(translate(qday(x)), sql("DATE_DIFF('DAYS', DATE_TRUNC('QUARTER', CAST((x) AS DATE)), (CAST((x) AS DATE) + INTERVAL '1 DAY'))")) at test_backend-dbplyr__duckdb_connection.R:116:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-duckdb (local) translate(qday(x))
    5. | \-dbplyr::translate_sql(..., con = con) at test_backend-dbplyr__duckdb_connection.R:99:15
    6. |   \-dbplyr::translate_sql_(...)
    7. |     \-base::lapply(...)
    8. |       \-dbplyr (local) FUN(X[[i]], ...)
    9. |         +-dbplyr::escape(eval_tidy(x, mask), con = con)
   10. |         \-rlang::eval_tidy(x, mask)
   11. +-duckdb (local) qday(x)
   12. | \-dbplyr::build_sql(...)
   13. \-base::loadNamespace(x)
   14.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test_backend-dbplyr__duckdb_connection.R:153'): custom stringr functions translated correctly --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_equal(translate(str_to_sentence(x)), sql("(UPPER(x[0]) || x[1:NULL])")) at test_backend-dbplyr__duckdb_connection.R:153:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-duckdb (local) translate(str_to_sentence(x))
    5. | \-dbplyr::translate_sql(..., con = con) at test_backend-dbplyr__duckdb_connection.R:141:15
    6. |   \-dbplyr::translate_sql_(...)
    7. |     \-base::lapply(...)
    8. |       \-dbplyr (local) FUN(X[[i]], ...)
    9. |         +-dbplyr::escape(eval_tidy(x, mask), con = con)
   10. |         \-rlang::eval_tidy(x, mask)
   11. +-duckdb (local) str_to_sentence(x)
   12. | \-dbplyr::build_sql("(UPPER(", string, "[0]) || ", string, "[1:NULL])")
   13. \-base::loadNamespace(x)
   14.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test_backend-dbplyr__duckdb_connection.R:191'): two variable aggregates are translated correctly --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_equal(...) at test_backend-dbplyr__duckdb_connection.R:191:2
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-duckdb (local) translate(cor(x, y), window = FALSE)
    5. | \-dbplyr::translate_sql(..., con = con) at test_backend-dbplyr__duckdb_connection.R:188:15
    6. |   \-dbplyr::translate_sql_(...)
    7. |     \-base::lapply(...)
    8. |       \-dbplyr (local) FUN(X[[i]], ...)
    9. |         +-dbplyr::escape(eval_tidy(x, mask), con = con)
   10. |         \-rlang::eval_tidy(x, mask)
   11. +-dbplyr (local) cor(x, y)
   12. | \-dbplyr::build_sql(sql(f), list(x, y))
   13. \-base::loadNamespace(x)
   14.   \-base::library.dynam(lib, package, package.lib)
  
  [ FAIL 5 | WARN 0 | SKIP 20 | PASS 275 ]
  Error: Test failures
  Execution halted
  Warning message:
  Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or duckdb::duckdb_shutdown(drv) to avoid this.