- using R version 4.5.2 Patched (2026-01-31 r89382)
- using platform: aarch64-apple-darwin20
- R was compiled by
Apple clang version 16.0.0 (clang-1600.0.26.6)
GNU Fortran (GCC) 14.2.0
- running under: macOS Ventura 13.7.8
- using session charset: UTF-8
- checking for file ‘cohortBuilder.db/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘cohortBuilder.db’ version ‘1.0.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘cohortBuilder.db’ can be installed ... [3s/3s] OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking whether startup messages can be suppressed ... [0s/0s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [2s/2s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/2s] 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/8s] 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
- checking PDF version of manual ... [4s/4s] OK
- DONE
Status: 2 ERRORs