CRAN Package Check Results for Package dcmodifydb

Last updated on 2023-02-04 11:51:30 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.1 9.03 101.16 110.19 ERROR
r-devel-linux-x86_64-debian-gcc 0.3.1 5.90 74.16 80.06 ERROR
r-devel-linux-x86_64-fedora-clang 0.3.1 133.72 ERROR
r-devel-linux-x86_64-fedora-gcc 0.3.1 140.47 ERROR
r-devel-windows-x86_64 0.3.1 97.00 129.00 226.00 ERROR
r-patched-linux-x86_64 0.3.1 13.83 98.32 112.15 ERROR
r-release-linux-x86_64 0.3.1 7.93 92.95 100.88 ERROR
r-release-macos-arm64 0.3.1 47.00 OK
r-release-macos-x86_64 0.3.1 54.00 OK
r-release-windows-x86_64 0.3.1 54.00 136.00 190.00 ERROR
r-oldrel-macos-arm64 0.3.1 41.00 OK
r-oldrel-macos-x86_64 0.3.1 56.00 OK
r-oldrel-windows-ix86+x86_64 0.3.1 20.00 119.00 139.00 ERROR

Check Details

Version: 0.3.1
Check: examples
Result: ERROR
    Running examples in ‘dcmodifydb-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: is_working_db
    > ### Title: Rule check on the database
    > ### Aliases: is_working_db
    >
    > ### ** Examples
    >
    > person <- dbplyr::memdb_frame(age = 12, salary = 3000)
    >
    > library(dcmodify)
    >
    > correction_rules <- modifier( if (age < 16) salary = 0
    + , if (retired == TRUE) salary = 0
    + )
    >
    > # second rule is not working, because retired is not available
    > is_working_db(correction_rules, person, warn = FALSE)
    Error in `dplyr::filter()`:
    ℹ In argument: `retired == TRUE`
    Caused by error:
    ! Object `retired` not found.
    Backtrace:
     ▆
     1. └─dcmodifydb::is_working_db(correction_rules, person, warn = FALSE)
     2. └─dcmodifydb::modifier_to_sql(...)
     3. └─base::lapply(...)
     4. └─dcmodifydb (local) FUN(X[[i]], ...)
     5. ├─base::eval(bquote(dplyr::filter(table, .(g))))
     6. │ └─base::eval(bquote(dplyr::filter(table, .(g))))
     7. ├─dplyr::filter(table, retired == TRUE)
     8. └─dbplyr:::filter.tbl_lazy(table, retired == TRUE)
     9. └─dbplyr:::partial_eval_dots(.data, ..., .named = FALSE)
     10. └─dbplyr:::partial_eval_quo(dot, .data, error_call, dot_name, was_named[[i]])
     11. ├─rlang::try_fetch(...)
     12. │ ├─base::tryCatch(...)
     13. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
     14. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
     15. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
     16. │ └─base::withCallingHandlers(...)
     17. └─dbplyr::partial_eval(get_expr(x), data, get_env(x), error_call = error_call)
     18. └─dbplyr:::partial_eval_call(call, data, env)
     19. └─base::lapply(call[-1], partial_eval, data = data, env = env)
     20. └─dbplyr (local) FUN(X[[i]], ...)
     21. └─dbplyr:::partial_eval_sym(call, data, env)
     22. └─cli::cli_abort("Object {.var {name}} not found.", call = NULL)
     23. └─rlang::abort(...)
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [11s/13s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [8s/12s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.3.1
Check: examples
Result: ERROR
    Running examples in ‘dcmodifydb-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: is_working_db
    > ### Title: Rule check on the database
    > ### Aliases: is_working_db
    >
    > ### ** Examples
    >
    > person <- dbplyr::memdb_frame(age = 12, salary = 3000)
    >
    > library(dcmodify)
    >
    > correction_rules <- modifier( if (age < 16) salary = 0
    + , if (retired == TRUE) salary = 0
    + )
    >
    > # second rule is not working, because retired is not available
    > is_working_db(correction_rules, person, warn = FALSE)
    Error in `dplyr::filter()`:
    ℹ In argument: `retired == TRUE`
    Caused by error:
    ! Object `retired` not found.
    Backtrace:
     ▆
     1. └─dcmodifydb::is_working_db(correction_rules, person, warn = FALSE)
     2. └─dcmodifydb::modifier_to_sql(...)
     3. └─base::lapply(...)
     4. └─dcmodifydb (local) FUN(X[[i]], ...)
     5. ├─base::eval(bquote(dplyr::filter(table, .(g))))
     6. │ └─base::eval(bquote(dplyr::filter(table, .(g))))
     7. ├─dplyr::filter(table, retired == TRUE)
     8. └─dbplyr:::filter.tbl_lazy(table, retired == TRUE)
     9. └─dbplyr:::partial_eval_dots(.data, ..., .named = FALSE)
     10. └─dbplyr:::partial_eval_quo(dot, .data, error_call, dot_name, was_named[[i]])
     11. ├─rlang::try_fetch(...)
     12. │ ├─base::tryCatch(...)
     13. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
     14. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
     15. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
     16. │ └─base::withCallingHandlers(...)
     17. └─dbplyr::partial_eval(get_expr(x), data, get_env(x), error_call = error_call)
     18. └─dbplyr:::partial_eval_call(call, data, env)
     19. └─base::lapply(call[-1], partial_eval, data = data, env = env)
     20. └─dbplyr (local) FUN(X[[i]], ...)
     21. └─dbplyr:::partial_eval_sym(call, data, env)
     22. └─cli::cli_abort("Object {.var {name}} not found.", call = NULL)
     23. └─rlang::abort(...)
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [12s/15s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [13s/13s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.3.1
Check: tests
Result: ERROR
     Running 'testthat.R' [11s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [10s/12s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [11s/14s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-release-linux-x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running 'testthat.R' [12s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (5)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-is_working.R:27'): is working: is working check ────────────────
     Error in `dplyr::filter(table, z > 2)`: ℹ In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     ── Error ('test-modify.R:96'): modify: handles a non-working rule ──────────────
     Error in `dplyr::filter(table, y > 1)`: ℹ In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     ── Error ('test-schema.R:19'): Schema's working: works a schema table ──────────
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: ℹ In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     ▆
     1. ├─dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. │ └─base::lapply(...)
     3. │ └─dcmodifydb (local) FUN(X[[i]], ...)
     4. │ └─dbplyr::build_sql(...)
     5. │ └─purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. │ ├─purrr:::with_indexed_errors(...)
     8. │ │ └─base::withCallingHandlers(...)
     9. │ ├─purrr:::call_with_cleanup(...)
     10. │ └─dbplyr (local) .f(.x[[i]], ...)
     11. │ └─dbplyr::escape(val, con = con)
     12. └─base::.handleSimpleError(...)
     13. └─purrr (local) h(simpleError(msg, call))
     14. └─cli::cli_abort(...)
     15. └─rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-x86_64

Version: 0.3.1
Check: examples
Result: ERROR
    Running examples in 'dcmodifydb-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: is_working_db
    > ### Title: Rule check on the database
    > ### Aliases: is_working_db
    >
    > ### ** Examples
    >
    > person <- dbplyr::memdb_frame(age = 12, salary = 3000)
    >
    > library(dcmodify)
    >
    > correction_rules <- modifier( if (age < 16) salary = 0
    + , if (retired == TRUE) salary = 0
    + )
    >
    > # second rule is not working, because retired is not available
    > is_working_db(correction_rules, person, warn = FALSE)
    Error in `dplyr::filter()`:
    i In argument: `retired == TRUE`
    Caused by error:
    ! Object `retired` not found.
    Backtrace:
     x
     1. \-dcmodifydb::is_working_db(correction_rules, person, warn = FALSE)
     2. \-dcmodifydb::modifier_to_sql(...)
     3. \-base::lapply(...)
     4. \-dcmodifydb (local) FUN(X[[i]], ...)
     5. +-base::eval(bquote(dplyr::filter(table, .(g))))
     6. | \-base::eval(bquote(dplyr::filter(table, .(g))))
     7. +-dplyr::filter(table, retired == TRUE)
     8. \-dbplyr:::filter.tbl_lazy(table, retired == TRUE)
     9. \-dbplyr:::partial_eval_dots(.data, ..., .named = FALSE)
     10. \-dbplyr:::partial_eval_quo(dot, .data, error_call, dot_name, was_named[[i]])
     11. +-rlang::try_fetch(...)
     12. | +-base::tryCatch(...)
     13. | | \-base (local) tryCatchList(expr, classes, parentenv, handlers)
     14. | | \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
     15. | | \-base (local) doTryCatch(return(expr), name, parentenv, handler)
     16. | \-base::withCallingHandlers(...)
     17. \-dbplyr::partial_eval(get_expr(x), data, get_env(x), error_call = error_call)
     18. \-dbplyr:::partial_eval_call(call, data, env)
     19. \-base::lapply(call[-1], partial_eval, data = data, env = env)
     20. \-dbplyr (local) FUN(X[[i]], ...)
     21. \-dbplyr:::partial_eval_sym(call, data, env)
     22. \-cli::cli_abort("Object {.var {name}} not found.", call = NULL)
     23. \-rlang::abort(...)
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 0.3.1
Check: tests
Result: ERROR
     Running 'testthat.R' [11s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(dcmodifydb)
     >
     > test_check("dcmodifydb")
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
    
     == Skipped tests ===============================================================
     * On CRAN (5)
    
     == Failed tests ================================================================
     -- Error ('test-is_working.R:27'): is working: is working check ----------------
     Error in `dplyr::filter(table, z > 2)`: i In argument: `z > 2`
     Caused by error:
     ! Object `z` not found.
     -- Error ('test-modify.R:96'): modify: handles a non-working rule --------------
     Error in `dplyr::filter(table, y > 1)`: i In argument: `y > 1`
     Caused by error:
     ! Object `y` not found.
     -- Error ('test-schema.R:19'): Schema's working: works a schema table ----------
     <purrr_error_indexed/rlang_error/error/condition>
     Error in `purrr::map_chr(enexprs(...), escape_expr, con = con)`: i In index: 2.
     Caused by error in `UseMethod()`:
     ! no applicable method for 'escape' applied to an object of class "dbplyr_schema"
     Backtrace:
     x
     1. +-dcmodifydb::modifier_to_sql(m, ir) at test-schema.R:19:4
     2. | \-base::lapply(...)
     3. | \-dcmodifydb (local) FUN(X[[i]], ...)
     4. | \-dbplyr::build_sql(...)
     5. | \-purrr::map_chr(enexprs(...), escape_expr, con = con)
     6. | \-purrr:::map_("character", .x, .f, ..., .progress = .progress)
     7. | +-purrr:::with_indexed_errors(...)
     8. | | \-base::withCallingHandlers(...)
     9. | +-purrr:::call_with_cleanup(...)
     10. | \-dbplyr (local) .f(.x[[i]], ...)
     11. | \-dbplyr::escape(val, con = con)
     12. \-base::.handleSimpleError(...)
     13. \-purrr (local) h(simpleError(msg, call))
     14. \-cli::cli_abort(...)
     15. \-rlang::abort(...)
    
     [ FAIL 3 | WARN 0 | SKIP 5 | PASS 34 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64