Last updated on 2026-11-23 17:52:44 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-fedora-clang | 1.0.0 | 58.55 | ERROR | |||
| r-oldrel-macos-arm64 | 1.0.0 | 3.00 | 32.00 | 35.00 | ERROR | |
| r-oldrel-macos-x86_64 | 1.0.0 | 7.00 | 79.00 | 86.00 | ERROR |
Version: 1.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(cohortBuilder)
Attaching package: 'cohortBuilder'
The following object is masked from 'package:testthat':
describe
The following objects are masked from 'package:stats':
filter, step
> library(cohortBuilder.db)
>
> test_check("cohortBuilder.db")
Saving _problems/test-filter_types-34.R
Saving _problems/test-filter_types-51.R
Saving _problems/test-filter_types-63.R
Saving _problems/test-filter_types-84.R
Saving _problems/test-filter_types-94.R
Saving _problems/test-filter_types-117.R
Saving _problems/test-filter_types-134.R
Saving _problems/test-filter_types-148.R
Saving _problems/test-filter_types-158.R
Saving _problems/test-filter_types-183.R
Saving _problems/test-filter_types-208.R
Saving _problems/test-filter_types-222.R
Saving _problems/test-filter_types-235.R
Saving _problems/test-filter_types-258.R
Saving _problems/test-filter_types-278.R
Saving _problems/test-filter_types-298.R
Saving _problems/test-filter_types-331.R
Saving _problems/test-filter_types-354.R
Saving _problems/test-source-18.R
Saving _problems/test-source-35.R
Saving _problems/test-source-69.R
Saving _problems/test-step_strategy-51.R
Saving _problems/test-step_strategy-60.R
Saving _problems/test-step_strategy-79.R
Saving _problems/test-step_strategy-102.R
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-filter_types.R:26:3'): multi_discrete filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:26:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:40:3'): multi_discrete constrains every listed variable ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:40:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:63:3'): multi_discrete respects keep_na ─────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:63:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:74:3'): multi_discrete returns no rows when nothing is selected ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:74:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:90:3'): multi_discrete statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:90:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:113:3'): multi_discrete domain is read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:113:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:124:3'): datetime_range filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:124:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:148:3'): datetime_range respects keep_na ────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:148:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:158:3'): datetime_range statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:158:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:183:3'): datetime_range domain is POSIXct read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:183:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:192:3'): query filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:192:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:222:3'): query respects keep_na ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:222:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:233:3'): query with no value keeps all the rows ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(filter("query", id = "q", dataset = "events", variables = "genre")) at test-filter_types.R:233:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:246:5'): query string operators are translated to SQL LIKE ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─testthat::expect_setequal(...) at test-filter_types.R:263:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─cohortBuilder.db (local) isbns("contains", "Da Vinci")
5. ├─cohortBuilder::cohort(...) at test-filter_types.R:246:5
6. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
7. │ └─cohortBuilder (local) initialize(...)
8. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
9. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
10. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
11. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
12. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
13. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
14. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
15. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
17. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
18. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
19. └─S7:::check_parent(`_parent`, class)
20. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:275:3'): query statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:275:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:298:3'): query specifications respect the value limit ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:298:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:313:3'): reproducible code is generated for the new filter types ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:313:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:343:5'): domains are propagated between steps like for tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) narrowed_domain(db_events_source()) at test-filter_types.R:360:3
2. ├─cohortBuilder::cohort(...) at test-filter_types.R:343:5
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:13:3'): DB layer works on connections ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:13:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:29:3'): Filtering works fine ──────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:29:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:64:3'): Binding works fine ────────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:64:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:51:3'): Lazy strategy materializes nothing ─────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:51:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:60:3'): Materialize strategy computes every table in every step ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:60:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:79:3'): Selective strategy computes only the tables a step touched ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:79:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:102:7'): All strategies return the same data ───
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─base::lapply(...) at test-step_strategy.R:98:3
2. └─cohortBuilder.db (local) FUN(X[[i]], ...)
3. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:102:7
4. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
5. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
6. │ └─cohortBuilder (local) initialize(...)
7. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
8. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
9. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
10. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
11. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
12. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
13. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
14. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘step-strategy.Rmd’ using rmarkdown
Quitting from step-strategy.Rmd:109-118 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `S7::new_object()` at cohortBuilder/R/filter.R:125:5:
! `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
---
Backtrace:
▆
1. └─global new_cohort()
2. ├─cohortBuilder::cohort(...)
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'step-strategy.Rmd' failed with diagnostics:
`_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
--- failed re-building ‘step-strategy.Rmd’
SUMMARY: processing the following file failed:
‘step-strategy.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(cohortBuilder)
Attaching package: 'cohortBuilder'
The following object is masked from 'package:testthat':
describe
The following objects are masked from 'package:stats':
filter, step
> library(cohortBuilder.db)
>
> test_check("cohortBuilder.db")
Saving _problems/test-filter_types-34.R
Saving _problems/test-filter_types-51.R
Saving _problems/test-filter_types-63.R
Saving _problems/test-filter_types-84.R
Saving _problems/test-filter_types-94.R
Saving _problems/test-filter_types-117.R
Saving _problems/test-filter_types-134.R
Saving _problems/test-filter_types-148.R
Saving _problems/test-filter_types-158.R
Saving _problems/test-filter_types-183.R
Saving _problems/test-filter_types-208.R
Saving _problems/test-filter_types-222.R
Saving _problems/test-filter_types-235.R
Saving _problems/test-filter_types-258.R
Saving _problems/test-filter_types-278.R
Saving _problems/test-filter_types-298.R
Saving _problems/test-filter_types-331.R
Saving _problems/test-filter_types-354.R
Saving _problems/test-source-18.R
Saving _problems/test-source-35.R
Saving _problems/test-source-69.R
Saving _problems/test-step_strategy-51.R
Saving _problems/test-step_strategy-60.R
Saving _problems/test-step_strategy-79.R
Saving _problems/test-step_strategy-102.R
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-filter_types.R:26:3'): multi_discrete filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:26:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:40:3'): multi_discrete constrains every listed variable ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:40:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:63:3'): multi_discrete respects keep_na ─────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:63:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:74:3'): multi_discrete returns no rows when nothing is selected ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:74:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:90:3'): multi_discrete statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:90:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:113:3'): multi_discrete domain is read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:113:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:124:3'): datetime_range filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:124:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:148:3'): datetime_range respects keep_na ────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:148:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:158:3'): datetime_range statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:158:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:183:3'): datetime_range domain is POSIXct read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:183:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:192:3'): query filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:192:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:222:3'): query respects keep_na ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:222:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:233:3'): query with no value keeps all the rows ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(filter("query", id = "q", dataset = "events", variables = "genre")) at test-filter_types.R:233:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:246:5'): query string operators are translated to SQL LIKE ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─testthat::expect_setequal(...) at test-filter_types.R:263:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─cohortBuilder.db (local) isbns("contains", "Da Vinci")
5. ├─cohortBuilder::cohort(...) at test-filter_types.R:246:5
6. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
7. │ └─cohortBuilder (local) initialize(...)
8. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
9. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
10. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
11. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
12. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
13. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
14. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
15. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
17. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
18. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
19. └─S7:::check_parent(`_parent`, class)
20. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:275:3'): query statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:275:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:298:3'): query specifications respect the value limit ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:298:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:313:3'): reproducible code is generated for the new filter types ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:313:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:343:5'): domains are propagated between steps like for tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) narrowed_domain(db_events_source()) at test-filter_types.R:360:3
2. ├─cohortBuilder::cohort(...) at test-filter_types.R:343:5
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:13:3'): DB layer works on connections ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:13:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:29:3'): Filtering works fine ──────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:29:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:64:3'): Binding works fine ────────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:64:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:51:3'): Lazy strategy materializes nothing ─────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:51:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:60:3'): Materialize strategy computes every table in every step ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:60:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:79:3'): Selective strategy computes only the tables a step touched ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:79:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:102:7'): All strategies return the same data ───
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─base::lapply(...) at test-step_strategy.R:98:3
2. └─cohortBuilder.db (local) FUN(X[[i]], ...)
3. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:102:7
4. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
5. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
6. │ └─cohortBuilder (local) initialize(...)
7. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
8. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
9. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
10. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
11. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
12. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
13. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
14. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-macos-arm64
Version: 1.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(cohortBuilder)
Attaching package: 'cohortBuilder'
The following object is masked from 'package:testthat':
describe
The following objects are masked from 'package:stats':
filter, step
> library(cohortBuilder.db)
>
> test_check("cohortBuilder.db")
Saving _problems/test-filter_types-34.R
Saving _problems/test-filter_types-51.R
Saving _problems/test-filter_types-63.R
Saving _problems/test-filter_types-84.R
Saving _problems/test-filter_types-94.R
Saving _problems/test-filter_types-117.R
Saving _problems/test-filter_types-134.R
Saving _problems/test-filter_types-148.R
Saving _problems/test-filter_types-158.R
Saving _problems/test-filter_types-183.R
Saving _problems/test-filter_types-208.R
Saving _problems/test-filter_types-222.R
Saving _problems/test-filter_types-235.R
Saving _problems/test-filter_types-258.R
Saving _problems/test-filter_types-278.R
Saving _problems/test-filter_types-298.R
Saving _problems/test-filter_types-331.R
Saving _problems/test-filter_types-354.R
Saving _problems/test-source-18.R
Saving _problems/test-source-35.R
Saving _problems/test-source-69.R
Saving _problems/test-step_strategy-51.R
Saving _problems/test-step_strategy-60.R
Saving _problems/test-step_strategy-79.R
Saving _problems/test-step_strategy-102.R
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-filter_types.R:26:3'): multi_discrete filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:26:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:40:3'): multi_discrete constrains every listed variable ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:40:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:63:3'): multi_discrete respects keep_na ─────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:63:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:74:3'): multi_discrete returns no rows when nothing is selected ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:74:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:90:3'): multi_discrete statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:90:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:113:3'): multi_discrete domain is read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:113:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:124:3'): datetime_range filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:124:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:148:3'): datetime_range respects keep_na ────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:148:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:158:3'): datetime_range statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:158:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:183:3'): datetime_range domain is POSIXct read from the data ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "datetime_range", id = id, name = name, variable = variable, range = range, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "range"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:183:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:250:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:192:3'): query filters db data the same way as tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(...) at test-filter_types.R:192:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:222:3'): query respects keep_na ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(do.call(filter, c(args, keep_na = TRUE))) at test-filter_types.R:222:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. ├─base::do.call(filter, c(args, keep_na = TRUE)) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) `<fn>`(...)
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:233:3'): query with no value keeps all the rows ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder.db (local) filtered_isbn(filter("query", id = "q", dataset = "events", variables = "genre")) at test-filter_types.R:233:3
2. │ └─cohortBuilder.db (local) result(db_events_source()) at test-filter_types.R:19:3
3. │ ├─cohortBuilder::cohort(source, step(flt)) at test-filter_types.R:15:5
4. │ │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
5. │ │ └─cohortBuilder (local) initialize(...)
6. │ │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
7. │ │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
8. │ │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
9. │ │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
10. │ │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
11. │ │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
12. │ └─cohortBuilder::step(flt) at cohortBuilder/R/step.R:57:3
13. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
16. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
17. └─S7:::check_parent(`_parent`, class)
18. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:246:5'): query string operators are translated to SQL LIKE ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─testthat::expect_setequal(...) at test-filter_types.R:263:3
2. │ └─testthat::quasi_label(enquo(object))
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─cohortBuilder.db (local) isbns("contains", "Da Vinci")
5. ├─cohortBuilder::cohort(...) at test-filter_types.R:246:5
6. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
7. │ └─cohortBuilder (local) initialize(...)
8. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
9. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
10. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
11. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
12. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
13. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
14. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
15. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
17. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
18. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
19. └─S7:::check_parent(`_parent`, class)
20. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:275:3'): query statistics match the tblist ones ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:275:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:298:3'): query specifications respect the value limit ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "query", id = id, name = name, variables = variables, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder::filter(...) at test-filter_types.R:298:3
2. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
3. └─S7::new_object(...) at cohortBuilder/R/filter.R:316:5
4. └─S7:::check_parent(`_parent`, class)
5. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:313:3'): reproducible code is generated for the new filter types ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "multi_discrete", id = id, name = name, variables = variables, values = values, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "values"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-filter_types.R:313:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:283:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-filter_types.R:343:5'): domains are propagated between steps like for tblist ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) narrowed_domain(db_events_source()) at test-filter_types.R:360:3
2. ├─cohortBuilder::cohort(...) at test-filter_types.R:343:5
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:13:3'): DB layer works on connections ─────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:13:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:29:3'): Filtering works fine ──────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:29:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-source.R:64:3'): Binding works fine ────────────────────────────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. ├─cohortBuilder::cohort(...) at test-source.R:64:3
2. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
3. │ └─cohortBuilder (local) initialize(...)
4. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
5. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
6. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
7. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
8. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
9. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
10. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
11. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
12. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
14. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
15. └─S7:::check_parent(`_parent`, class)
16. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:51:3'): Lazy strategy materializes nothing ─────
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:51:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:60:3'): Materialize strategy computes every table in every step ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:60:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:79:3'): Selective strategy computes only the tables a step touched ──
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:79:3
2. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
3. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
4. │ └─cohortBuilder (local) initialize(...)
5. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
6. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
7. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
8. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
9. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
10. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
11. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
12. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
13. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
14. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
15. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
16. └─S7:::check_parent(`_parent`, class)
17. └─S7:::stop2(msg, call = call)
── Error ('test-step_strategy.R:102:7'): All strategies return the same data ───
<error/condition>
Error in `S7::new_object(S7::S7_object(), type = "discrete", id = id, name = name, variable = variable, value = value, dataset = dataset, keep_na = keep_na, active = active, description = description, domain = domain, extra = list(...), private = list(input_param = "value"))`: `_parent` must be an instance of <cohortBuilder::CbFilter>, not <S7_object>.
Backtrace:
▆
1. └─base::lapply(...) at test-step_strategy.R:98:3
2. └─cohortBuilder.db (local) FUN(X[[i]], ...)
3. └─cohortBuilder.db (local) strategy_cohort() at test-step_strategy.R:102:7
4. ├─cohortBuilder::cohort(...) at test-step_strategy.R:11:3
5. │ └─Cohort$new(...) at cohortBuilder/R/cohort_methods.R:1297:3
6. │ └─cohortBuilder (local) initialize(...)
7. │ └─private$init_source(source, ...) at cohortBuilder/R/cohort_methods.R:47:9
8. │ └─cohortBuilder:::register_steps_and_filters(source, ...) at cohortBuilder/R/cohort_methods.R:1233:7
9. │ ├─purrr::map(pull_steps(source = source, ...), assign_filters_to_step) at cohortBuilder/R/step.R:108:3
10. │ │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
11. │ │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env)
12. │ └─cohortBuilder:::pull_steps(source = source, ...) at cohortBuilder/R/step.R:108:3
13. ├─cohortBuilder::step(...) at cohortBuilder/R/step.R:57:3
14. │ └─base::structure(list(filters = list(...)), class = "cb_step") at cohortBuilder/R/step.R:245:3
15. └─cohortBuilder::filter(...) at cohortBuilder/R/step.R:245:3
16. └─cohortBuilder (local) constructor(...) at cohortBuilder/R/filter.R:905:3
17. └─S7::new_object(...) at cohortBuilder/R/filter.R:125:5
18. └─S7:::check_parent(`_parent`, class)
19. └─S7:::stop2(msg, call = call)
[ FAIL 25 | WARN 0 | SKIP 0 | PASS 10 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-macos-x86_64