Running ‘testthat.R’ [10s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(editbl)
  > 
  > test_check("editbl")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 55 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tbl_dbi.R:12:7'): e_rows_insert.tbl_dbi works ──────────────────
  Error in `initialize(value, ...)`: cannot use object of class "dbplyr_table_ident" in new():  class "SQL" does not extend that class
  Backtrace:
       ▆
    1. ├─editbl:::e_rows_insert.tbl_dbi(...) at test-tbl_dbi.R:12:6
    2. │ └─base::lapply(...)
    3. │   └─editbl (local) FUN(X[[i]], ...)
    4. │     ├─editbl:::rowInsert(...)
    5. │     │ └─glue::glue_sql(...)
    6. │     │   ├─DBI::SQL(...)
    7. │     │   └─glue::glue(...)
    8. │     │     └─glue::glue_data(...)
    9. │     └─editbl:::get_db_table_name(x)
   10. │       └─DBI::SQL(name)
   11. │         └─methods::new("SQL", x)
   12. │           ├─methods::initialize(value, ...)
   13. │           └─methods::initialize(value, ...)
   14. └─glue (local) `<fn>`("`table`")
   15.   ├─.transformer(expr, env) %||% .null
   16.   └─glue (local) .transformer(expr, env)
   17.     └─base::eval(parse(text = text, keep.source = FALSE), envir)
   18.       └─base::eval(parse(text = text, keep.source = FALSE), envir)
  ── Error ('test-tbl_dbi.R:18:7'): e_rows_update.tbl_dbi works ──────────────────
  Error in `initialize(value, ...)`: cannot use object of class "dbplyr_table_ident" in new():  class "SQL" does not extend that class
  Backtrace:
       ▆
    1. ├─editbl::e_rows_update(...) at test-tbl_dbi.R:18:6
    2. ├─editbl:::e_rows_update.tbl_dbi(...)
    3. │ └─base::lapply(...)
    4. │   └─editbl (local) FUN(X[[i]], ...)
    5. │     ├─editbl:::rowUpdate(...)
    6. │     │ └─glue::glue_sql(...)
    7. │     │   ├─DBI::SQL(...)
    8. │     │   └─glue::glue(...)
    9. │     │     └─glue::glue_data(...)
   10. │     └─editbl:::get_db_table_name(x)
   11. │       └─DBI::SQL(name)
   12. │         └─methods::new("SQL", x)
   13. │           ├─methods::initialize(value, ...)
   14. │           └─methods::initialize(value, ...)
   15. └─glue (local) `<fn>`("`table`")
   16.   ├─.transformer(expr, env) %||% .null
   17.   └─glue (local) .transformer(expr, env)
   18.     └─base::eval(parse(text = text, keep.source = FALSE), envir)
   19.       └─base::eval(parse(text = text, keep.source = FALSE), envir)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 55 ]
  Error: Test failures
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted