Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(readwritesqlite)
  > 
  > test_check("readwritesqlite")
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'sf''
  Failed with error:  'there is no package called 'units''
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-db.R:49:3): table_info ──────────────────────────────────────────
  Error: there is no package called 'units'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-db.R:49:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-describe.R:9:3): describe with scalars works ────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-describe.R:9:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-describe.R:26:3): describe with vector works ────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-describe.R:26:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-describe.R:43:3): describe errors if extra ──────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-describe.R:43:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-describe.R:53:3): describe replace works ────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-describe.R:53:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-describe.R:84:3): describe two works ────────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-describe.R:84:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-drop.R:7:3): rws_drop_table works ───────────────────────────────
  Error: Package 'sf' must be installed.
  Backtrace:
      █
   1. ├─readwritesqlite::rws_write(...) test-drop.R:7:2
   2. └─readwritesqlite:::rws_write.list(...)
   3.   └─base::mapply(...)
   4.     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   5.       └─readwritesqlite:::validate_data(...)
   6.         └─readwritesqlite:::st_sf(...)
   7.           └─chk::err("Package 'sf' must be installed.")
   8.             └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-drop.R:19:3): rws_rename_table informative errors ───────────────
  Error: Package 'sf' must be installed.
  Backtrace:
      █
   1. ├─readwritesqlite::rws_write(...) test-drop.R:19:2
   2. └─readwritesqlite:::rws_write.list(...)
   3.   └─base::mapply(...)
   4.     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   5.       └─readwritesqlite:::validate_data(...)
   6.         └─readwritesqlite:::st_sf(...)
   7.           └─chk::err("Package 'sf' must be installed.")
   8.             └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-drop.R:34:3): rws_rename_table multiple tables ──────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-drop.R:34:2
    2. ├─readwritesqlite:::rws_write.list(...)
    3. │ └─base::mapply(...)
    4. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    5. │     └─readwritesqlite:::write_data(...)
    6. │       └─readwritesqlite:::convert_data(data)
    7. │         └─readwritesqlite:::sfc_to_blob(data)
    8. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    9. │             └─base::match.fun(FUN)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-drop.R:55:3): rws_drop_table primary key deferred ───────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-drop.R:55:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-init.R:45:3): init makes table ──────────────────────────────────
  Error: All columns in a tibble must be vectors.
  ✖ Column `geometry` is a `sfc_POINT/sfc` object.
  Backtrace:
      █
   1. ├─tibble::as_tibble(rws_data_sf) test-init.R:45:2
   2. └─tibble:::as_tibble.data.frame(rws_data_sf)
   3.   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   4.     └─tibble:::check_valid_cols(x)
  ── Error (test-log.R:24:3): rws_write data.frame logs commands ─────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(local, conn = conn) test-log.R:24:2
    2. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-log.R:56:3): rws_write list logs commands ───────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(y["local"], exists = FALSE, conn = conn) test-log.R:56:2
    2. ├─readwritesqlite:::rws_write.list(...)
    3. │ └─base::mapply(...)
    4. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    5. │     └─readwritesqlite:::write_data(...)
    6. │       └─readwritesqlite:::convert_data(data)
    7. │         └─readwritesqlite:::sfc_to_blob(data)
    8. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    9. │             └─base::match.fun(FUN)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-log.R:88:3): log replace rows UNIQUE constraints ────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-log.R:88:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:49:3): meta handles logical ──────────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:49:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:63:3): meta handles all classes ──────────────────────────
  Error: there is no package called 'units'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-meta.R:63:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:88:3): meta errors if meta and then no meta ──────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-meta.R:88:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:104:3): meta errors if no meta and then meta ─────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-meta.R:104:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:120:3): meta errors if inconsistent meta ─────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-meta.R:120:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:136:3): fix meta inconsistent by deleting ────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-meta.R:136:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:160:3): meta reads logical ───────────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-meta.R:160:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:170:3): meta reads all classes ───────────────────────────
  Error: there is no package called 'units'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-meta.R:170:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:211:3): meta = FALSE same as just writing ────────────────
  Error: there is no package called 'units'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-meta.R:211:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:270:3): meta logical logical different types ─────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:270:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:304:3): meta Date different types ────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:304:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:341:3): meta POSIXct different types ─────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:341:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:381:3): meta hms different types ─────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:381:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:422:3): meta hms preserves decimal ───────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:422:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:440:3): meta units different types ───────────────────────
  Error: there is no package called 'units'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-meta.R:440:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:475:3): meta sfc different types ─────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-meta.R:475:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:553:3): meta factor different types ──────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:553:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:588:3): meta factor 11 level ─────────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:588:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:615:3): meta ordered different types ─────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:615:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:691:3): meta factor rearrange levels ─────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:691:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:730:3): meta factor add levels ───────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:730:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:771:3): meta ordered add and rearrange levels ────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:771:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:819:3): meta TRUE then FALSE then read with TRUE ─────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-meta.R:819:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-meta.R:861:3): meta strips trailing spaces proj ─────────────────
  Error: there is no package called 'sf'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-meta.R:861:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-pool.R:10:3): sf data frames with single geometry passed back ───
  Error: Package 'sf' must be installed.
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-pool.R:10:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. └─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6.   └─readwritesqlite:::write_sqlite_data(...)
    7.     └─readwritesqlite:::validate_data(...)
    8.       └─readwritesqlite:::st_sf(...)
    9.         └─chk::err("Package 'sf' must be installed.")
   10.           └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-query.R:23:3): rws_get_sqlite_query works with meta = TRUE and logical ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-query.R:23:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-query.R:36:3): rws_get_sqlite_query works with meta = TRUE and logical ──
  Error: there is no package called 'units'
  Backtrace:
      █
   1. ├─base::data.frame(...) test-query.R:36:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-query.R:69:3): rws_get_sqlite_query teases apart two ────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-query.R:69:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-read.R:62:3): rws_read with meta = FALSE  ───────────────────────
  Error: Package 'sf' must be installed.
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-read.R:62:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = NA, conn = conn)
    5. └─readwritesqlite:::rws_write.data.frame(local, exists = NA, conn = conn)
    6.   └─readwritesqlite:::write_sqlite_data(...)
    7.     └─readwritesqlite:::validate_data(...)
    8.       └─readwritesqlite:::st_sf(...)
    9.         └─chk::err("Package 'sf' must be installed.")
   10.           └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-rename.R:7:3): rws_rename_table works ───────────────────────────
  Error: Package 'sf' must be installed.
  Backtrace:
      █
   1. ├─readwritesqlite::rws_write(...) test-rename.R:7:2
   2. └─readwritesqlite:::rws_write.list(...)
   3.   └─base::mapply(...)
   4.     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   5.       └─readwritesqlite:::validate_data(...)
   6.         └─readwritesqlite:::st_sf(...)
   7.           └─chk::err("Package 'sf' must be installed.")
   8.             └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-rename.R:19:3): rws_rename_table informative errors ─────────────
  Error: Package 'sf' must be installed.
  Backtrace:
      █
   1. ├─readwritesqlite::rws_write(...) test-rename.R:19:2
   2. └─readwritesqlite:::rws_write.list(...)
   3.   └─base::mapply(...)
   4.     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   5.       └─readwritesqlite:::validate_data(...)
   6.         └─readwritesqlite:::st_sf(...)
   7.           └─chk::err("Package 'sf' must be installed.")
   8.             └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-rename.R:40:3): rws_rename_table multiple tables ────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-rename.R:40:2
    2. ├─readwritesqlite:::rws_write.list(...)
    3. │ └─base::mapply(...)
    4. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    5. │     └─readwritesqlite:::write_data(...)
    6. │       └─readwritesqlite:::convert_data(data)
    7. │         └─readwritesqlite:::sfc_to_blob(data)
    8. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    9. │             └─base::match.fun(FUN)
   10. └─base::loadNamespace(x)
   11.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   12.     └─base:::withOneRestart(expr, restarts[[1L]])
   13.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:61:3): rws_rename_table primary key ────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-rename.R:61:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:79:3): rws_rename_column works ─────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-rename.R:79:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:98:3): rws_rename_column renames own column ────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-rename.R:98:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:115:3): rws_rename_column informative errors ───────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-rename.R:115:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:130:3): rws_rename_column can't overwrite existing column ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(...) test-rename.R:130:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-rename.R:150:3): rws_rename_column primary key ──────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-rename.R:150:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-utils.R:11:3): rws_table_names ──────────────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn) test-utils.R:11:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-validate.R:32:3): rws_write.data.frame checks missing values ────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-validate.R:32:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-validate.R:51:3): rws_write.data.frame checks primary key on input values ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-validate.R:51:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:43:3): rws_write.data.frame writes to existing table ────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:43:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:62:3): rws_write.data.frame creates table ───────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:62:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = FALSE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:74:3): rws_write.data.frame handling of case ────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:74:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:97:3): rws_write.data.frame deals with " quoted table names ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:97:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:113:3): rws_write.data.frame deals with [ quoted table names ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:113:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:129:3): rws_write.data.frame deals with backtick quoted table names ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:129:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:141:3): rws_write.data.frame corrects column order ──────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:141:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:165:3): rws_write.data.frame warns for extra columns ────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-write.R:165:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readwritesqlite::rws_write(local, conn = conn, strict = FALSE)
    7. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn, strict = FALSE)
    8. │ └─readwritesqlite:::write_sqlite_data(...)
    9. │   └─readwritesqlite:::write_data(...)
   10. │     └─readwritesqlite:::convert_data(data)
   11. │       └─readwritesqlite:::sfc_to_blob(data)
   12. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   13. │           └─base::match.fun(FUN)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base:::withOneRestart(expr, restarts[[1L]])
   17.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:181:3): rws_write.data.frame is case insensitive ────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:181:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:189:3): rws_write.data.frame deals with quoted column names ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:189:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn, exists = FALSE)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn, exists = FALSE)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:212:3): rws_write.data.frame can delete ─────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(local, conn = conn) test-write.R:212:2
    2. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:224:3): rws_write.data.frame can not commit ─────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─readwritesqlite::rws_write(local, commit = FALSE, conn = conn) test-write.R:224:2
    2. ├─readwritesqlite:::rws_write.data.frame(...)
    3. │ └─readwritesqlite:::write_sqlite_data(...)
    4. │   └─readwritesqlite:::write_data(...)
    5. │     └─readwritesqlite:::convert_data(data)
    6. │       └─readwritesqlite:::sfc_to_blob(data)
    7. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
    8. │           └─base::match.fun(FUN)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:265:3): rws_write writes list with 1 data frame ─────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(y, conn = conn), "local") test-write.R:265:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(y, conn = conn)
    5. ├─readwritesqlite:::rws_write.list(y, conn = conn)
    6. │ └─base::mapply(...)
    7. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    8. │     └─readwritesqlite:::write_data(...)
    9. │       └─readwritesqlite:::convert_data(data)
   10. │         └─readwritesqlite:::sfc_to_blob(data)
   11. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   12. │             └─base::match.fun(FUN)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:278:3): rws_write writes list with 2 data frame ─────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:278:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(y, conn = conn)
    5. ├─readwritesqlite:::rws_write.list(y, conn = conn)
    6. │ └─base::mapply(...)
    7. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    8. │     └─readwritesqlite:::write_data(...)
    9. │       └─readwritesqlite:::convert_data(data)
   10. │         └─readwritesqlite:::sfc_to_blob(data)
   11. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   12. │             └─base::match.fun(FUN)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:292:3): rws_write writes list with 2 identically named data frames ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:292:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(y, conn = conn, unique = FALSE)
    5. ├─readwritesqlite:::rws_write.list(y, conn = conn, unique = FALSE)
    6. │ └─base::mapply(...)
    7. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    8. │     └─readwritesqlite:::write_data(...)
    9. │       └─readwritesqlite:::convert_data(data)
   10. │         └─readwritesqlite:::sfc_to_blob(data)
   11. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   12. │             └─base::match.fun(FUN)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:335:3): rws_write errors if strict = TRUE and exists = TRUE and extra data frames ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-write.R:335:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readwritesqlite::rws_write(y, strict = FALSE, conn = conn)
    7. ├─readwritesqlite:::rws_write.list(y, strict = FALSE, conn = conn)
    8. │ └─base::mapply(...)
    9. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
   10. │     └─readwritesqlite:::write_data(...)
   11. │       └─readwritesqlite:::convert_data(data)
   12. │         └─readwritesqlite:::sfc_to_blob(data)
   13. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   14. │             └─base::match.fun(FUN)
   15. └─base::loadNamespace(x)
   16.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17.     └─base:::withOneRestart(expr, restarts[[1L]])
   18.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:348:3): rws_write writes environment ────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:348:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(environment(), conn = conn, exists = FALSE)
    5. ├─readwritesqlite:::rws_write.environment(...)
    6. │ ├─readwritesqlite::rws_write(...)
    7. │ └─readwritesqlite:::rws_write.list(...)
    8. │   └─base::mapply(...)
    9. │     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   10. │       └─readwritesqlite:::write_data(...)
   11. │         └─readwritesqlite:::convert_data(data)
   12. │           └─readwritesqlite:::sfc_to_blob(data)
   13. │             └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   14. │               └─base::match.fun(FUN)
   15. └─base::loadNamespace(x)
   16.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17.     └─base:::withOneRestart(expr, restarts[[1L]])
   18.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:359:3): rws_write not commits ───────────────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:359:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(...)
    5. ├─readwritesqlite:::rws_write.list(...)
    6. │ └─base::mapply(...)
    7. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    8. │     └─readwritesqlite:::write_data(...)
    9. │       └─readwritesqlite:::convert_data(data)
   10. │         └─readwritesqlite:::sfc_to_blob(data)
   11. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   12. │             └─base::match.fun(FUN)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:376:3): replace rows PRIMARY KEY constraints ────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:376:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:410:3): replace rows UNIQUE constraints in unique key ───
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:410:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:446:3): replace rows with FOREIGN key ───────────────────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:446:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-write.R:469:3): foreign keys switched on one data frame at a time ──
  `rws_write(y$local2, x_name = "local2", conn = conn)` threw an error with unexpected message.
  Expected match: "FOREIGN KEY constraint failed"
  Actual message: "there is no package called 'sf'"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-write.R:469:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readwritesqlite::rws_write(y$local2, x_name = "local2", conn = conn)
    7. ├─readwritesqlite:::rws_write.data.frame(...)
    8. │ └─readwritesqlite:::write_sqlite_data(...)
    9. │   └─readwritesqlite:::write_data(...)
   10. │     └─readwritesqlite:::convert_data(data)
   11. │       └─readwritesqlite:::sfc_to_blob(data)
   12. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   13. │           └─base::match.fun(FUN)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base:::withOneRestart(expr, restarts[[1L]])
   17.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:474:3): foreign keys switched on one data frame at a time ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:474:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(y$local, x_name = "local", conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:491:3): foreign keys switched off for two data frame ────
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:491:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(y, conn = conn)
    5. ├─readwritesqlite:::rws_write.list(y, conn = conn)
    6. │ └─base::mapply(...)
    7. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
    8. │     └─readwritesqlite:::write_data(...)
    9. │       └─readwritesqlite:::convert_data(data)
   10. │         └─readwritesqlite:::sfc_to_blob(data)
   11. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   12. │             └─base::match.fun(FUN)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-write.R:509:3): foreign keys pick up foreign key violation for two data frames ──
  `rws_write(y, conn = conn)` threw an error with unexpected message.
  Expected match: "FOREIGN KEY constraint failed"
  Actual message: "there is no package called 'sf'"
  Backtrace:
       █
    1. ├─testthat::expect_error(rws_write(y, conn = conn), "FOREIGN KEY constraint failed") test-write.R:509:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readwritesqlite::rws_write(y, conn = conn)
    7. ├─readwritesqlite:::rws_write.list(y, conn = conn)
    8. │ └─base::mapply(...)
    9. │   └─(function (data, table_name, exists, delete, replace, meta, log, ...
   10. │     └─readwritesqlite:::write_data(...)
   11. │       └─readwritesqlite:::convert_data(data)
   12. │         └─readwritesqlite:::sfc_to_blob(data)
   13. │           └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   14. │             └─base::match.fun(FUN)
   15. └─base::loadNamespace(x)
   16.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17.     └─base:::withOneRestart(expr, restarts[[1L]])
   18.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:532:3): strict environment with extra data frame and extra column ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-write.R:532:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─readwritesqlite::rws_write(env, strict = FALSE, conn = conn)
    7. ├─readwritesqlite:::rws_write.environment(...)
    8. │ ├─readwritesqlite::rws_write(...)
    9. │ └─readwritesqlite:::rws_write.list(...)
   10. │   └─base::mapply(...)
   11. │     └─(function (data, table_name, exists, delete, replace, meta, log, ...
   12. │       └─readwritesqlite:::write_data(...)
   13. │         └─readwritesqlite:::convert_data(data)
   14. │           └─readwritesqlite:::sfc_to_blob(data)
   15. │             └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   16. │               └─base::match.fun(FUN)
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:552:3): sf data frames with single geometry passed back ──
  Error: Package 'sf' must be installed.
  Backtrace:
       █
    1. ├─testthat::expect_identical(rws_write(local, conn = conn), "local") test-write.R:552:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, conn = conn)
    5. └─readwritesqlite:::rws_write.data.frame(local, conn = conn)
    6.   └─readwritesqlite:::write_sqlite_data(...)
    7.     └─readwritesqlite:::validate_data(...)
    8.       └─readwritesqlite:::st_sf(...)
    9.         └─chk::err("Package 'sf' must be installed.")
   10.           └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  ── Error (test-write.R:577:3): sf data frames with two geometries and correct one passed back ──
  Error: All columns in a tibble must be vectors.
  ✖ Column `geometry` is a `sfc_POINT/sfc` object.
  Backtrace:
      █
   1. ├─tibble::as_tibble(local) test-write.R:577:2
   2. └─tibble:::as_tibble.data.frame(local)
   3.   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   4.     └─tibble:::check_valid_cols(x)
  ── Error (test-write.R:604:3): sf can change sf_column ─────────────────────────
  Error: All columns in a tibble must be vectors.
  ✖ Column `geometry` is a `sfc_POINT/sfc` object.
  Backtrace:
      █
   1. ├─tibble::as_tibble(local) test-write.R:604:2
   2. └─tibble:::as_tibble.data.frame(local)
   3.   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   4.     └─tibble:::check_valid_cols(x)
  ── Error (test-write.R:630:3): sf data frames with two geometries and lots of other stuff and correct one passed back ──
  Error: All columns in a tibble must be vectors.
  ✖ Column `geometry` is a `sfc_POINT/sfc` object.
  Backtrace:
      █
   1. ├─tibble::as_tibble(local) test-write.R:630:2
   2. └─tibble:::as_tibble.data.frame(local)
   3.   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   4.     └─tibble:::check_valid_cols(x)
  ── Error (test-write.R:659:3): initialized even with no rows of data ───────────
  Error: All columns in a tibble must be vectors.
  ✖ Column `geometry` is a `sfc_POINT/sfc` object.
  Backtrace:
      █
   1. ├─tibble::as_tibble(local) test-write.R:659:2
   2. └─tibble:::as_tibble.data.frame(local)
   3.   └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   4.     └─tibble:::check_valid_cols(x)
  ── Error (test-write.R:709:3): initialized meta with no rows of data and not overwritten unless delete = TRUE ──
  Error: there is no package called 'sf'
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:709:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, delete = TRUE, conn = conn)
    5. ├─readwritesqlite:::rws_write.data.frame(...)
    6. │ └─readwritesqlite:::write_sqlite_data(...)
    7. │   └─readwritesqlite:::write_data(...)
    8. │     └─readwritesqlite:::convert_data(data)
    9. │       └─readwritesqlite:::sfc_to_blob(data)
   10. │         └─base::lapply(data[is_sfc], sf::st_as_binary, endian = "little")
   11. │           └─base::match.fun(FUN)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-write.R:780:3): meta then inconsistent data then error meta but delete reset ──
  Error: Package 'units' must be installed.
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-write.R:780:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─readwritesqlite::rws_write(local, exists = NA, conn = conn)
    5. └─readwritesqlite:::rws_write.data.frame(local, exists = NA, conn = conn)
    6.   └─readwritesqlite:::write_sqlite_data(...)
    7.     └─readwritesqlite:::write_data(...)
    8.       └─readwritesqlite:::write_meta_data(...)
    9.         └─readwritesqlite:::validate_data_meta(data, table_name, conn)
   10.           └─readwritesqlite:::data_meta(data)
   11.             └─base::vapply(data, FUN = data_column_meta, FUN.VALUE = "", USE.NAMES = TRUE)
   12.               └─readwritesqlite:::FUN(X[[i]], ...)
   13.                 └─chk::err("Package 'units' must be installed.")
   14.                   └─rlang::exec(abort, msg, .subclass = .subclass, !!!args[named])
  
  [ FAIL 88 | WARN 0 | SKIP 0 | PASS 186 ]
  Error: Test failures
  Execution halted