Package: autoslider.core Check: examples New result: ERROR Running examples in ‘autoslider.core-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: generate_slides > ### Title: generate slides based on output > ### Aliases: generate_slides > > ### ** Examples > > ## Don't show: > if (require(filters)) withAutoprint({ # examplesIf + ## End(Don't show) + + # Example 1. When applying to the whole pipeline + library(dplyr) + data <- list( + adsl = eg_adsl %>% dplyr::mutate(FASFL = SAFFL), + adae = eg_adae + ) + + + filters::load_filters( + yaml_file = system.file("filters.yml", package = "autoslider.core"), + overwrite = TRUE + ) + + + spec_file <- system.file("spec.yml", package = "autoslider.core") + spec_file %>% + read_spec() %>% + filter_spec(program %in% c("t_dm_slide")) %>% + generate_outputs(datasets = data) %>% + decorate_outputs() %>% + generate_slides() + + # Example 2. When applying to an rtable object or an rlisting object + adsl <- eg_adsl + t_dm_slide(adsl, "TRT01P", c("SEX", "AGE")) %>% + generate_slides() + ## Don't show: + }) # examplesIf Loading required package: filters > library(dplyr) Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union > data <- list(adsl = eg_adsl %>% dplyr::mutate(FASFL = SAFFL), adae = eg_adae) > filters::load_filters(yaml_file = system.file("filters.yml", package = "autoslider.core"), + overwrite = TRUE) > spec_file <- system.file("spec.yml", package = "autoslider.core") > spec_file %>% read_spec() %>% filter_spec(program %in% c("t_dm_slide")) %>% + generate_outputs(datasets = data) %>% decorate_outputs() %>% generate_slides() ✔ 2/51 outputs matched the filter condition `program %in% c("t_dm_slide")`. ❯ Running program `t_dm_slide` with suffix 'FAS'. Filter 'FAS' matched target ADSL. 400/400 records matched the filter condition `FASFL == 'Y'`. ⚠ Error: 'arg' must be of length 1 ❯ Running program `t_dm_slide` with suffix 'FAS'. Filter 'FAS' matched target ADSL. 400/400 records matched the filter condition `FASFL == 'Y'`. ⚠ Error: 'arg' must be of length 1 'arg' must be of length 1 'arg' must be of length 1 > adsl <- eg_adsl > t_dm_slide(adsl, "TRT01P", c("SEX", "AGE")) %>% generate_slides() Error in match.arg(round_type) : 'arg' must be of length 1 Calls: withAutoprint ... -> format_rcell -> format_value -> match.arg Execution halted Package: autoslider.core Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘adding_templates.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘adding_templates.Rmd’ --- re-building ‘autoslideR.Rmd’ using rmarkdown Quitting from autoslideR.Rmd:377-379 [unnamed-chunk-10] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `h()`: ! error in evaluating the argument 'tt' in selecting a method for function 'collect_leaves': 'arg' must be of length 1 --- Backtrace: ▆ 1. ├─global lbt06(data) 2. │ ├─... %>% rtables::trim_rows() 3. │ └─rtables::build_table(lyt = lyt, df = adlb_f_crp, alt_counts_df = adsl) 4. │ └─rtables::update_ref_indexing(tab) 5. │ ├─formatters::make_row_df(tt) 6. │ └─rtables::make_row_df(tt) 7. │ └─rtables (local) .local(...) 8. │ ├─formatters::make_row_df(...) 9. │ └─rtables::make_row_df(...) 10. │ └─rtables (local) .local(...) 11. │ ├─formatters::make_row_df(...) 12. │ └─rtables::make_row_df(...) 13. │ └─rtables (local) .local(...) 14. │ ├─formatters::make_row_df(...) 15. │ └─rtables::make_row_df(...) 16. │ └─rtables (local) .local(...) 17. │ ├─formatters::pagdfrow(...) 18. │ │ └─base::data.frame(...) 19. │ ├─formatters::nlines(...) 20. │ └─rtables::nlines(...) 21. │ ├─base::as.vector(get_formatted_cells(x)) 22. │ ├─rtables::get_formatted_cells(x) 23. │ └─rtables::get_formatted_cells(x) 24. │ ├─base::matrix(...) 25. │ ├─base::unlist(...) 26. │ └─base::Map(...) 27. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. │ └─rtables::format_rcell(...) 30. │ └─formatters::format_value(...) 31. │ └─base::match.arg(round_type) 32. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 33. ├─rtables::trim_rows(.) 34. │ └─rtables::collect_leaves(tt, TRUE, TRUE) 35. └─base::.handleSimpleError(...) 36. └─base (local) h(simpleError(msg, call)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'autoslideR.Rmd' failed with diagnostics: error in evaluating the argument 'tt' in selecting a method for function 'collect_leaves': 'arg' must be of length 1 --- failed re-building ‘autoslideR.Rmd’ --- re-building ‘downstream.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘downstream.Rmd’ --- re-building ‘generate_placeholder_slides.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘generate_placeholder_slides.Rmd’ --- re-building ‘opensource.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘opensource.Rmd’ --- re-building ‘tlg_templates.Rmd’ using rmarkdown Warning in get_engine(options$engine) : Unknown language engine 'r_function_call' (must be registered via knit_engines$set()). Quitting from tlg_templates.Rmd:211-229 [unnamed-chunk-7] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' must be of length 1 --- Backtrace: ▆ 1. └─global demography(data$adsl) 2. └─autoslider.core::lyt_to_side_by_side(lyt, adsl1, side_by_side) 3. └─rtables::build_table(lyt = lyt, df = anl) 4. └─rtables::update_ref_indexing(tab) 5. ├─formatters::make_row_df(tt) 6. └─rtables::make_row_df(tt) 7. └─rtables (local) .local(...) 8. ├─formatters::make_row_df(...) 9. └─rtables::make_row_df(...) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::pagdfrow(...) 15. │ └─base::data.frame(...) 16. ├─formatters::nlines(...) 17. └─rtables::nlines(...) 18. ├─base::as.vector(get_formatted_cells(x)) 19. ├─rtables::get_formatted_cells(x) 20. └─rtables::get_formatted_cells(x) 21. ├─base::matrix(...) 22. ├─base::unlist(...) 23. └─base::Map(...) 24. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 25. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 26. └─rtables::format_rcell(...) 27. └─formatters::format_value(...) 28. └─base::match.arg(round_type) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'tlg_templates.Rmd' failed with diagnostics: 'arg' must be of length 1 --- failed re-building ‘tlg_templates.Rmd’ --- re-building ‘use_LLM.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘use_LLM.Rmd’ --- re-building ‘using_formats.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘using_formats.Rmd’ SUMMARY: processing the following files failed: ‘autoslideR.Rmd’ ‘tlg_templates.Rmd’ Error: Vignette re-building failed. Execution halted Package: autoslider.core Check: tests New result: ERROR Running ‘testthat.R’ [21s/21s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > pkg_name <- "autoslider.core" > library(testthat) > test_check(pkg_name, reporter = ParallelProgressReporter$new()) Loading required package: autoslider.core Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Loading required package: formatters Attaching package: 'formatters' The following object is masked from 'package:base': %||% Loading required package: magrittr Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Attaching package: 'rtables' The following object is masked from 'package:utils': str Attaching package: 'purrr' The following object is masked from 'package:magrittr': set_names The following object is masked from 'package:formatters': %||% Loading required package: ggplot2 ✔ | F W S OK | Context ⠋ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] Starting up... ✔ | 22 | appendix [2.0s] ✔ | 17 | assert Loading required package: filters ✔ | 1 | bad_filters ✔ | 1 0 | data_snapshot [[1]] [[1]] [[2]] ✔ | 1 9 | decorate [1.7s] ──────────────────────────────────────────────────────────────────────────────── Warning ('test-decorate.R:71:3'): Test ph_with_img not to throw Calling `add_slide()` without specifying a `layout` is deprecated. Please pass a `layout` or use `layout_default()` to set a default. => I will now continue with the former `layout` default "Title and Content" for backwards compatibility... Backtrace: ▆ 1. └─autoslider.core:::do_call(add_slide, x = ppt, master = ppt_master) at test-decorate.R:71:3 2. ├─base::do.call(fun, args[intersect(names(args), formalArgs(fun))]) 3. └─officer (local) ``(x = ``, master = "Office Theme") 4. └─base::.Deprecated(...) ──────────────────────────────────────────────────────────────────────────────── ✔ | 1 0 | filter_spec-verbose ✔ | 6 | formats v 3/3 outputs matched the filter condition `program %in% c("t_ds_slide", "t_dm_slide", "t_ae_slide")`. > Running program `t_ds_slide` with suffix 'ITT'. Filter 'ITT' matched target ADSL. 400/400 records matched the filter condition `ITTFL == 'Y'`. ! Error: 'arg' must be of length 1 > Running program `t_dm_slide` with suffix 'ITT'. Filter 'ITT' matched target ADSL. 400/400 records matched the filter condition `ITTFL == 'Y'`. ! Error: 'arg' must be of length 1 > Running program `t_ae_slide` with suffix 'SER'. Filter 'SER' matched target ADAE. 786/1934 records matched the filter condition `AESER == 'Y'`. ! Error: 'arg' must be of length 1 ✖ | 1 0 | ft_format [1.2s] ──────────────────────────────────────────────────────────────────────────────── Error ('test-ft_format.R:90:3'): demographic table formatting Error in `h(simpleError(msg, call))`: error in evaluating the argument 'obj' in selecting a method for function 'matrix_form': no applicable method for `@` applied to an object of class "autoslider_error" Backtrace: ▆ 1. ├─autoslider.core:::to_flextable.dVTableTree(...) at test-ft_format.R:90:3 2. │ └─rtables::paginate_table(dtbl@tbl, lpp = lpp, cpp = cpp) 3. │ ├─formatters::propose_column_widths(...) 4. │ │ └─methods::is(x, "MatrixPrintForm") 5. │ └─formatters::matrix_form(...) 6. └─base::.handleSimpleError(...) 7. └─base (local) h(simpleError(msg, call)) ──────────────────────────────────────────────────────────────────────────────── Filter 'SE' matched target ADSL. 400/400 records matched the filter condition `SAFFL == 'Y'`. Filter 'SE' matched target ADSL. 400/400 records matched the filter condition `SAFFL == 'Y'`. Filter 'SE' matched target ADSL. 400/400 records matched the filter condition `SAFFL == 'Y'`. Filter 'SE' matched target ADSL. 400/400 records matched the filter condition `SAFFL == 'Y'`. Filter 'SE' matched target ADSL. 400/400 records matched the filter condition `SAFFL == 'Y'`. ✖ | 2 3 | func_wrapper ──────────────────────────────────────────────────────────────────────────────── Error ('test-func_wrapper.R:21:3'): legacy with datasets and spec Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core (local) wrapped(aesi = "CQ01NAM", grad_var = "AETOXGR") at test-func_wrapper.R:21:3 2. └─autoslider.core::fastDoCall(...) 3. └─base::eval(call, envir = args, enclos = envir) 4. └─base::eval(call, envir = args, enclos = envir) 5. └─autoslider.core (local) func(adsl = adsl, adae = adae, aesi = aesi, grad_var = grad_var) 6. └─rtables::build_table(lyt_adae, df = adae2, alt_counts_df = adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) Error ('test-func_wrapper.R:30:3'): legacy with datasets but no spec Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core (local) wrapped(arm = "TRT01A", split_by_study = TRUE) at test-func_wrapper.R:30:3 2. └─autoslider.core::fastDoCall(...) 3. └─base::eval(call, envir = args, enclos = envir) 4. └─base::eval(call, envir = args, enclos = envir) 5. └─autoslider.core (local) ``(adsl = adsl, arm = arm, split_by_study = split_by_study) 6. └─autoslider.core::lyt_to_side_by_side(lyt, anl, side_by_side) 7. └─rtables::build_table(lyt = lyt, df = anl) 8. └─rtables::update_ref_indexing(tab) 9. ├─formatters::make_row_df(tt) 10. └─rtables::make_row_df(tt) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::pagdfrow(...) 19. │ └─base::data.frame(...) 20. ├─formatters::nlines(...) 21. └─rtables::nlines(...) 22. ├─base::as.vector(get_formatted_cells(x)) 23. ├─rtables::get_formatted_cells(x) 24. └─rtables::get_formatted_cells(x) 25. ├─base::matrix(...) 26. ├─base::unlist(...) 27. └─base::Map(...) 28. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 29. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 30. └─rtables::format_rcell(...) 31. └─formatters::format_value(...) 32. └─base::match.arg(round_type) ──────────────────────────────────────────────────────────────────────────────── ✔ | 5 10 | g_mean_slides [3.0s] ✔ | 1 1 | helper_functions Loading required package: tibble Attaching package: 'tibble' The following object is masked from 'package:assertthat': has_name ✔ | 1 0 | l_ae_slide [6.5s] v Total number of success 100/100 v Total number of success 99/100 x Total number of failures 1/100 ✔ | 2 | log ✖ | 1 0 | output-table-format ──────────────────────────────────────────────────────────────────────────────── Error ('test-output-table-format.R:2:3'): save an autoslider output Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'decorate': 'arg' must be of length 1 Backtrace: ▆ 1. ├─... %>% list() at test-output-table-format.R:2:3 2. ├─autoslider.core::decorate(., title = "test title", footnote = "") 3. ├─autoslider.core::t_dm_slide(adsl = testdata$adsl) 4. │ └─autoslider.core::lyt_to_side_by_side(lyt, adsl1, side_by_side) 5. │ └─rtables::build_table(lyt = lyt, df = anl) 6. │ └─rtables::update_ref_indexing(tab) 7. │ ├─formatters::make_row_df(tt) 8. │ └─rtables::make_row_df(tt) 9. │ └─rtables (local) .local(...) 10. │ ├─formatters::make_row_df(...) 11. │ └─rtables::make_row_df(...) 12. │ └─rtables (local) .local(...) 13. │ ├─formatters::make_row_df(...) 14. │ └─rtables::make_row_df(...) 15. │ └─rtables (local) .local(...) 16. │ ├─formatters::pagdfrow(...) 17. │ │ └─base::data.frame(...) 18. │ ├─formatters::nlines(...) 19. │ └─rtables::nlines(...) 20. │ ├─base::as.vector(get_formatted_cells(x)) 21. │ ├─rtables::get_formatted_cells(x) 22. │ └─rtables::get_formatted_cells(x) 23. │ ├─base::matrix(...) 24. │ ├─base::unlist(...) 25. │ └─base::Map(...) 26. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. │ └─rtables::format_rcell(...) 29. │ └─formatters::format_value(...) 30. │ └─base::match.arg(round_type) 31. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 32. └─base::.handleSimpleError(...) 33. └─base (local) h(simpleError(msg, call)) ──────────────────────────────────────────────────────────────────────────────── ✖ | 3 0 | save_output ──────────────────────────────────────────────────────────────────────────────── Error ('test-save_output.R:4:3'): save an output Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'decorate': 'arg' must be of length 1 Backtrace: ▆ 1. ├─t_dm_slide(adsl = testdata$adsl) %>% ... at test-save_output.R:4:3 2. ├─autoslider.core::decorate(., title = "test title", footnote = "") 3. ├─autoslider.core::t_dm_slide(adsl = testdata$adsl) 4. │ └─autoslider.core::lyt_to_side_by_side(lyt, adsl1, side_by_side) 5. │ └─rtables::build_table(lyt = lyt, df = anl) 6. │ └─rtables::update_ref_indexing(tab) 7. │ ├─formatters::make_row_df(tt) 8. │ └─rtables::make_row_df(tt) 9. │ └─rtables (local) .local(...) 10. │ ├─formatters::make_row_df(...) 11. │ └─rtables::make_row_df(...) 12. │ └─rtables (local) .local(...) 13. │ ├─formatters::make_row_df(...) 14. │ └─rtables::make_row_df(...) 15. │ └─rtables (local) .local(...) 16. │ ├─formatters::pagdfrow(...) 17. │ │ └─base::data.frame(...) 18. │ ├─formatters::nlines(...) 19. │ └─rtables::nlines(...) 20. │ ├─base::as.vector(get_formatted_cells(x)) 21. │ ├─rtables::get_formatted_cells(x) 22. │ └─rtables::get_formatted_cells(x) 23. │ ├─base::matrix(...) 24. │ ├─base::unlist(...) 25. │ └─base::Map(...) 26. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. │ └─rtables::format_rcell(...) 29. │ └─formatters::format_value(...) 30. │ └─base::match.arg(round_type) 31. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 32. └─base::.handleSimpleError(...) 33. └─base (local) h(simpleError(msg, call)) Error ('test-save_output.R:23:3'): Test save_output (Save an Output) Error in `h(simpleError(msg, call))`: error in evaluating the argument 'output' in selecting a method for function 'save_output': error in evaluating the argument 'x' in selecting a method for function 'decorate': 'arg' must be of length 1 Backtrace: ▆ 1. ├─base::print(...) 2. ├─... %>% ... 3. ├─autoslider.core::save_output(...) 4. ├─autoslider.core::decorate(...) 5. ├─autoslider.core::t_ae_pt_slide(adsl, adae, "TRT01A", 2) 6. │ └─autoslider.core:::t_ae_pt_core(...) 7. │ └─autoslider.core::lyt_to_side_by_side_two_data(...) 8. │ └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 9. │ └─rtables::update_ref_indexing(tab) 10. │ ├─formatters::make_row_df(tt) 11. │ └─rtables::make_row_df(tt) 12. │ └─rtables (local) .local(...) 13. │ ├─formatters::make_row_df(...) 14. │ └─rtables::make_row_df(...) 15. │ └─rtables (local) .local(...) 16. │ ├─formatters::pagdfrow(...) 17. │ │ └─base::data.frame(...) 18. │ ├─formatters::nlines(...) 19. │ └─rtables::nlines(...) 20. │ ├─base::as.vector(get_formatted_cells(x)) 21. │ ├─rtables::get_formatted_cells(x) 22. │ └─rtables::get_formatted_cells(x) 23. │ ├─base::matrix(...) 24. │ ├─base::unlist(...) 25. │ └─base::Map(...) 26. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. │ └─rtables::format_rcell(...) 29. │ └─formatters::format_value(...) 30. │ └─base::match.arg(round_type) 31. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 32. ├─base::.handleSimpleError(...) 33. │ └─base (local) h(simpleError(msg, call)) 34. └─base::.handleSimpleError(...) 35. └─base (local) h(simpleError(msg, call)) Error ('test-save_output.R:40:3'): save an output Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'decorate': 'arg' must be of length 1 Backtrace: ▆ 1. ├─t_ds_slide(adsl = testdata$adsl) %>% ... at test-save_output.R:40:3 2. ├─autoslider.core::decorate(., title = "test title", footnote = "") 3. ├─autoslider.core::t_ds_slide(adsl = testdata$adsl) 4. │ └─autoslider.core::lyt_to_side_by_side(lyt, adsl1, side_by_side) 5. │ └─rtables::build_table(lyt = lyt, df = anl) 6. │ └─rtables::update_ref_indexing(tab) 7. │ ├─formatters::make_row_df(tt) 8. │ └─rtables::make_row_df(tt) 9. │ └─rtables (local) .local(...) 10. │ ├─formatters::make_row_df(...) 11. │ └─rtables::make_row_df(...) 12. │ └─rtables (local) .local(...) 13. │ ├─formatters::make_row_df(...) 14. │ └─rtables::make_row_df(...) 15. │ └─rtables (local) .local(...) 16. │ ├─formatters::pagdfrow(...) 17. │ │ └─base::data.frame(...) 18. │ ├─formatters::nlines(...) 19. │ └─rtables::nlines(...) 20. │ ├─base::as.vector(get_formatted_cells(x)) 21. │ ├─rtables::get_formatted_cells(x) 22. │ └─rtables::get_formatted_cells(x) 23. │ ├─base::matrix(...) 24. │ ├─base::unlist(...) 25. │ └─base::Map(...) 26. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. │ └─rtables::format_rcell(...) 29. │ └─formatters::format_value(...) 30. │ └─base::match.arg(round_type) 31. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 32. └─base::.handleSimpleError(...) 33. └─base (local) h(simpleError(msg, call)) ──────────────────────────────────────────────────────────────────────────────── ✖ | 1 0 | slides_preview ──────────────────────────────────────────────────────────────────────────────── Error ('test-slides_preview.R:3:3'): Test slides preview Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_dm_slide(adsl, "TRT01P", c("SEX", "AGE", "RACE")) at test-slides_preview.R:3:3 2. └─autoslider.core::lyt_to_side_by_side(lyt, adsl1, side_by_side) 3. └─rtables::build_table(lyt = lyt, df = anl) 4. └─rtables::update_ref_indexing(tab) 5. ├─formatters::make_row_df(tt) 6. └─rtables::make_row_df(tt) 7. └─rtables (local) .local(...) 8. ├─formatters::make_row_df(...) 9. └─rtables::make_row_df(...) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::pagdfrow(...) 15. │ └─base::data.frame(...) 16. ├─formatters::nlines(...) 17. └─rtables::nlines(...) 18. ├─base::as.vector(get_formatted_cells(x)) 19. ├─rtables::get_formatted_cells(x) 20. └─rtables::get_formatted_cells(x) 21. ├─base::matrix(...) 22. ├─base::unlist(...) 23. └─base::Map(...) 24. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 25. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 26. └─rtables::format_rcell(...) 27. └─formatters::format_value(...) 28. └─base::match.arg(round_type) ──────────────────────────────────────────────────────────────────────────────── ✔ | 1 0 | srep_outputs ⠙ [ FAIL 15 | WARN 1 | SKIP 10 | PASS 72 ] @ t_ae_pt_diff_slide ──────────────────────────────────────────────────────────────────────────────── Error ('test-t_ae_pt_diff_slide.R:2:3'): Test table creation of t_ae_pt_diff_slide (safety summary table) Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:6:3'): Test table creation of t_ae_pt_diff_slide (safety summary table) prune by total 2 Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:11:3'): Test table creation of t_ae_pt_slide (safety summary table) prune by total 2 Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:17:3'): Test table creation of t_ae_pt_slide (safety summary table) prune by total 2 Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:25:3'): Test table creation of t_ae_pt_slide (safety summary table) prune by total 2 Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:43:3'): Test table creation of t_ae_pt_slide (safety summary table) prune by total 2 Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─autoslider.core::t_ae_pt_diff_slide(...) 2. └─autoslider.core:::t_ae_pt_core(...) 3. └─autoslider.core::lyt_to_side_by_side_two_data(...) 4. └─rtables::build_table(lyt = lyt, df = anl, alt_counts_df = alt_counts_df) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) Error ('test-t_ae_pt_diff_slide.R:57:3'): Test table creation of t_ae_pt_diff_slide with null_report Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'toString': 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_snapshot(...) at test-t_ae_pt_diff_slide.R:57:3 2. │ └─testthat:::expect_snapshot_(...) 3. │ ├─testthat:::with_is_snapshotting(...) 4. │ └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay) 5. │ └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler) 6. │ ├─base::withRestarts(...) 7. │ │ └─base (local) withRestartList(expr, restarts) 8. │ │ ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]]) 9. │ │ │ └─base (local) doWithOneRestart(return(expr), restart) 10. │ │ └─base (local) withRestartList(expr, restarts[-nr]) 11. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 12. │ │ └─base (local) doWithOneRestart(return(expr), restart) 13. │ ├─evaluate:::with_handlers(...) 14. │ │ ├─base::eval(call) 15. │ │ │ └─base::eval(call) 16. │ │ └─base::withCallingHandlers(...) 17. │ └─watcher$print_value(ev$value, ev$visible, envir) 18. │ ├─base::withVisible(handle_value(handler, value, visible, envir)) 19. │ └─evaluate:::handle_value(handler, value, visible, envir) 20. │ ├─handler$value(value) 21. │ └─testthat:::testthat_print.default(value) 22. │ ├─base::print(x) 23. │ └─base::print.default(x) 24. │ ├─methods (local) ``(``) 25. │ └─rtables (local) ``(``) 26. │ ├─base::cat(toString(object)) 27. │ ├─base::toString(object) 28. │ └─rtables::toString(object) 29. │ └─rtables (local) .local(x, ...) 30. │ ├─base::toString(...) 31. │ ├─formatters::matrix_form(...) 32. │ └─rtables::matrix_form(...) 33. │ └─rtables:::.tbl_header_mat(obj) 34. │ ├─base::matrix(...) 35. │ └─base::rapply(...) 36. │ └─rtables (local) ``(X, ...) 37. │ ├─rtables::get_formatted_cells(x) 38. │ └─rtables::get_formatted_cells(x) 39. │ ├─base::matrix(...) 40. │ ├─base::unlist(...) 41. │ └─base::Map(...) 42. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 43. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 44. │ └─rtables::format_rcell(...) 45. │ └─formatters::format_value(...) 46. │ └─base::match.arg(round_type) 47. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 48. └─base::.handleSimpleError(...) 49. └─base (local) h(simpleError(msg, call)) Maximum number of failures exceeded; quitting. ℹ Increase this number with (e.g.) `testthat::set_max_fails(Inf)` Error: ! Test failures. Execution halted Package: chevron Check: examples New result: ERROR Running examples in ‘chevron-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: aet01_main > ### Title: 'AET01' Table 1 (Default) Overview of Deaths and Adverse Events > ### Summary Table 1. > ### Aliases: aet01_main aet01_pre aet01_post aet01 > ### Keywords: datasets > > ### ** Examples > > run(aet01, syn_data, arm_var = "ARM") Error in match.arg(round_type) : 'arg' must be of length 1 Calls: run ... -> format_rcell -> format_value -> match.arg Execution halted Package: chevron Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘chevron.Rmd’ using rmarkdown Quitting from chevron.Rmd:84-86 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' must be of length 1 --- Backtrace: ▆ 1. ├─chevron::run(aet02, syn_data) 2. ├─chevron::run(aet02, syn_data) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db) 6. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'chevron.Rmd' failed with diagnostics: 'arg' must be of length 1 --- failed re-building ‘chevron.Rmd’ --- re-building ‘chevron_catalog.rmd’ using rmarkdown Quitting from chevron_catalog.rmd:64-67 [unnamed-chunk-5] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' must be of length 1 --- Backtrace: ▆ 1. ├─chevron::run(dmt01, proc_data) 2. ├─chevron::run(dmt01, proc_data) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db) 6. └─rtables::build_table(lyt, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'chevron_catalog.rmd' failed with diagnostics: 'arg' must be of length 1 --- failed re-building ‘chevron_catalog.rmd’ --- re-building ‘script_generator.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘script_generator.Rmd’ SUMMARY: processing the following files failed: ‘chevron.Rmd’ ‘chevron_catalog.rmd’ Error: Vignette re-building failed. Execution halted Package: chevron Check: tests New result: ERROR Running ‘testthat.R’ [83s/83s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(checkmate) > library(chevron) > > test_check("chevron") Saving _problems/test-aet02-30.R Saving _problems/test-cfbt01-6.R Saving _problems/test-chevron_tlg-methods-16.R Saving _problems/test-cmt01a-5.R Saving _problems/test-cmt01a-18.R Saving _problems/test-default_tlg-10.R Saving _problems/test-default_tlg-17.R Saving _problems/test-default_tlg-24.R Saving _problems/test-default_tlg-31.R Saving _problems/test-default_tlg-38.R Saving _problems/test-default_tlg-45.R Saving _problems/test-default_tlg-52.R Saving _problems/test-default_tlg-59.R Saving _problems/test-default_tlg-66.R Saving _problems/test-default_tlg-76.R Saving _problems/test-default_tlg-84.R Saving _problems/test-default_tlg-91.R Saving _problems/test-default_tlg-98.R Saving _problems/test-default_tlg-105.R Saving _problems/test-dtht01-30.R Saving _problems/test-egt01-5.R Saving _problems/test-egt02-5.R Saving _problems/test-egt02-13.R Saving _problems/test-egt03-5.R Saving _problems/test-egt05_qtcat-5.R Saving _problems/test-empty_report-19.R Saving _problems/test-ext01-5.R Saving _problems/test-ext01-14.R Saving _problems/test-ext01-38.R Saving _problems/test-ext01-50.R Saving _problems/test-ext01-60.R Saving _problems/test-ext01-72.R Saving _problems/test-ext01-78.R Saving _problems/test-lbt01-9.R Saving _problems/test-lbt01-19.R Saving _problems/test-lbt04-5.R Saving _problems/test-lbt04-21.R Saving _problems/test-lbt05-5.R Saving _problems/test-lbt05-22.R Saving _problems/test-lbt06-9.R Saving _problems/test-lbt06-19.R Saving _problems/test-lbt07-5.R Saving _problems/test-lbt14-9.R Saving _problems/test-lbt14-17.R Saving _problems/test-lbt14-25.R Saving _problems/test-lbt14-33.R Saving _problems/test-lbt14-74.R Saving _problems/test-lbt14-130.R Saving _problems/test-lbt15-5.R Saving _problems/test-mht01-5.R Saving _problems/test-mht01-15.R Saving _problems/test-mht01-22.R Saving _problems/test-mht01-29.R Saving _problems/test-mng01-6.R Saving _problems/test-mng01-30.R Saving _problems/test-mng01-63.R Saving _problems/test-mng01-85.R Saving _problems/test-mng01-118.R Saving _problems/test-mng01-139.R Saving _problems/test-mng01-158.R Saving _problems/test-pdt01-5.R Saving _problems/test-pdt02-5.R Saving _problems/test-report_null-10.R Saving _problems/test-rmpt01-5.R Saving _problems/test-rmpt03-8.R Saving _problems/test-rmpt04-5.R Saving _problems/test-rmpt05-5.R Saving _problems/test-rmpt06-6.R Saving _problems/test-rmpt06-15.R Saving _problems/test-utils-76.R Saving _problems/test-vst01-9.R Saving _problems/test-vst02-5.R Saving _problems/test-vst02-13.R [ FAIL 182 | WARN 0 | SKIP 26 | PASS 208 ] ══ Skipped tests (26) ══════════════════════════════════════════════════════════ • !interactive() is TRUE (1): 'test-chevron_tlg-methods.R:287:3' • On CRAN (25): 'test-ael01_nollt.R:3:1', 'test-ael01_nollt.R:11:1', 'test-ael01_nollt.R:24:1', 'test-ael01_nollt.R:38:1', 'test-ael01_nollt.R:54:1', 'test-ael01_nollt.R:70:1', 'test-ael02.R:3:1', 'test-ael02.R:12:1', 'test-ael02.R:30:1', 'test-ael03.R:3:1', 'test-ael03.R:12:1', 'test-ael03.R:30:1', 'test-chevron_tlg-methods.R:102:1', 'test-chevron_tlg-methods.R:120:1', 'test-chevron_tlg-methods.R:333:1', 'test-chevron_tlg-methods.R:337:1', 'test-cml02a_gl.R:3:1', 'test-cml02a_gl.R:8:1', 'test-cml02a_gl.R:18:1', 'test-default_tlg.R:1:1', 'test-mng01.R:97:1', 'test-unwrap.R:1:1', 'test-unwrap.R:40:1', 'test-unwrap.R:69:1', 'test-unwrap.R:104:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-aet01.R:11:3'): aet01 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01, proc_data)) at test-aet01.R:11:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01, proc_data) 10. ├─chevron::run(aet01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. ├─base::rbind(...) 15. ├─base::rbind(...) 16. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-aet01.R:29:3'): aet01 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01, proc_data)) at test-aet01.R:29:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01, proc_data) 10. ├─chevron::run(aet01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. ├─base::rbind(...) 15. ├─base::rbind(...) 16. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-aet01.R:36:3'): aet01 can use custom anl_vars ────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01, proc_data, anl_vars = list(safety_var = "FATAL"))) at test-aet01.R:36:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01, proc_data, anl_vars = list(safety_var = "FATAL")) 10. ├─chevron::run(aet01, proc_data, anl_vars = list(safety_var = "FATAL")) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, anl_vars = anl_vars) 14. ├─base::rbind(...) 15. ├─base::rbind(...) 16. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-aet01.R:57:3'): aet01 can use custom medconcept_var ──────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-aet01.R:57:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, anl_vars = anl_vars) 14. ├─base::rbind(...) 15. ├─base::rbind(...) 16. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-aet01.R:74:3'): aet01 can conditionally show the number of withdrawal ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-aet01.R:74:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01, syn_data, arm_var = "ARM", show_wd = FALSE) 10. ├─chevron::run(aet01, syn_data, arm_var = "ARM", show_wd = FALSE) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, arm_var = arm_var, show_wd = show_wd) 14. ├─base::rbind(...) 15. ├─base::rbind(...) 16. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-aet01_aesi.R:16:3'): aet01_aesi can handle all NA values ─────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01_aesi, proc_data)) at test-aet01_aesi.R:16:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01_aesi, proc_data) 10. ├─chevron::run(aet01_aesi, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet01_aesi.R:30:3'): aet01_aesi can handle some NA values ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01_aesi, proc_data)) at test-aet01_aesi.R:30:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01_aesi, proc_data) 10. ├─chevron::run(aet01_aesi, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet01_aesi.R:37:3'): aet01_aesi works with `ALL` argument ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet01_aesi, proc_data, aesi_vars = c("ALL"))) at test-aet01_aesi.R:37:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet01_aesi, proc_data, aesi_vars = c("ALL")) 10. ├─chevron::run(aet01_aesi, proc_data, aesi_vars = c("ALL")) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, aesi_vars = aesi_vars) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet02.R:25:3'): aet02 handle empty data input ────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet02, proc_data)) at test-aet02.R:25:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet02, proc_data) 10. ├─chevron::run(aet02, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet02.R:30:3'): aet02 can have different levels of row_split ─── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(aet02, syn_data, row_split_var = NULL) at test-aet02.R:30:3 2. ├─chevron::run(aet02, syn_data, row_split_var = NULL) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, row_split_var = row_split_var) 6. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-aet03.R:9:3'): aet03 can handle NA values ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet03, proc_data)) at test-aet03.R:9:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet03, proc_data) 10. ├─chevron::run(aet03, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet03.R:27:3'): aet03 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet03, proc_data)) at test-aet03.R:27:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet03, proc_data) 10. ├─chevron::run(aet03, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-aet04.R:9:3'): aet04 can handle NA values ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet04, proc_data)) at test-aet04.R:9:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet04, proc_data) 10. ├─chevron::run(aet04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::pagdfrow(...) 32. │ └─base::data.frame(...) 33. ├─formatters::nlines(...) 34. └─rtables::nlines(...) 35. ├─base::as.vector(get_formatted_cells(x)) 36. ├─rtables::get_formatted_cells(x) 37. └─rtables::get_formatted_cells(x) 38. ├─base::matrix(...) 39. ├─base::unlist(...) 40. └─base::Map(...) 41. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 42. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 43. └─rtables::format_rcell(...) 44. └─formatters::format_value(...) 45. └─base::match.arg(round_type) ── Error ('test-aet04.R:32:3'): aet04 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet04, proc_data)) at test-aet04.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet04, proc_data) 10. ├─chevron::run(aet04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::pagdfrow(...) 32. │ └─base::data.frame(...) 33. ├─formatters::nlines(...) 34. └─rtables::nlines(...) 35. ├─base::as.vector(get_formatted_cells(x)) 36. ├─rtables::get_formatted_cells(x) 37. └─rtables::get_formatted_cells(x) 38. ├─base::matrix(...) 39. ├─base::unlist(...) 40. └─base::Map(...) 41. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 42. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 43. └─rtables::format_rcell(...) 44. └─formatters::format_value(...) 45. └─base::match.arg(round_type) ── Error ('test-aet05.R:6:3'): aet05 can handle NA values ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet05, proc_data)) at test-aet05.R:6:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet05, proc_data) 10. ├─chevron::run(aet05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-aet05.R:24:3'): aet05 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet05, proc_data)) at test-aet05.R:24:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet05, proc_data) 10. ├─chevron::run(aet05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-aet05_all.R:6:3'): aet05_all can handle NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet05_all, proc_data)) at test-aet05_all.R:6:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet05_all, proc_data) 10. ├─chevron::run(aet05_all, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-aet05_all.R:21:3'): aet05_all can handle some NA values ──────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet05_all, proc_data)) at test-aet05_all.R:21:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet05_all, proc_data) 10. ├─chevron::run(aet05_all, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-aet10.R:9:3'): aet10 can handle NA values ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet10, proc_data)) at test-aet10.R:9:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet10, proc_data) 10. ├─chevron::run(aet10, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-aet10.R:24:3'): aet10 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(aet10, proc_data)) at test-aet10.R:24:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet10, proc_data) 10. ├─chevron::run(aet10, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-cfbt01.R:6:3'): cfbt01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::cfbt01_main(pre_data, dataset = "advs") at test-cfbt01.R:6:3 2. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-cfbt01.R:20:3'): cfbt01 can handle n = 0 and outputs NE instead of infs and NAs ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(cfbt01, proc_data, dataset = "advs")) at test-cfbt01.R:20:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(cfbt01, proc_data, dataset = "advs") 10. ├─chevron::run(cfbt01, proc_data, dataset = "advs") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, dataset = dataset) 14. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:7:3'): run works as expected for chevron_t object ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(res <- run(aet04, syn_adv, prune_0 = TRUE)) at test-chevron_tlg-methods.R:7:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(aet04, syn_adv, prune_0 = TRUE) 10. ├─chevron::run(aet04, syn_adv, prune_0 = TRUE) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0) 14. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::pagdfrow(...) 32. │ └─base::data.frame(...) 33. ├─formatters::nlines(...) 34. └─rtables::nlines(...) 35. ├─base::as.vector(get_formatted_cells(x)) 36. ├─rtables::get_formatted_cells(x) 37. └─rtables::get_formatted_cells(x) 38. ├─base::matrix(...) 39. ├─base::unlist(...) 40. └─base::Map(...) 41. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 42. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 43. └─rtables::format_rcell(...) 44. └─formatters::format_value(...) 45. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:16:3'): run works as expected for chevron_t object when auto_pre = FALSE ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(dmt01, proc_data, auto_pre = FALSE) at test-chevron_tlg-methods.R:16:3 2. ├─chevron::run(dmt01, proc_data, auto_pre = FALSE) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db) 6. └─rtables::build_table(lyt, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:22:3'): run works as expected with argument printed ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:22:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:31:3'): run works as expected with argument printed if the user argument is complicated ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:31:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(...) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:39:3'): run uses the argument passed through the ellipsis in priority ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:39:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(...) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:57:3'): run works as expected with partial match argument ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:57:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0, arm_var = arm_var) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:66:3'): run displays the symbols when available ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:66:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(...) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:84:3'): run print internal functions when unwrap is TRUE ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:84:3 2. │ └─testthat::capture_output_lines(code, print, width = width) 3. │ └─testthat:::eval_with_output(code, print = print, width = width) 4. │ ├─withr::with_output_sink(path, withVisible(code)) 5. │ │ └─base::force(code) 6. │ └─base::withVisible(code) 7. ├─chevron::run(...) 8. ├─chevron::run(...) 9. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 10. │ └─base::do.call(what, new_args, envir = args_env) 11. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0) 12. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::pagdfrow(...) 24. │ └─base::data.frame(...) 25. ├─formatters::nlines(...) 26. └─rtables::nlines(...) 27. ├─base::as.vector(get_formatted_cells(x)) 28. ├─rtables::get_formatted_cells(x) 29. └─rtables::get_formatted_cells(x) 30. ├─base::matrix(...) 31. ├─base::unlist(...) 32. └─base::Map(...) 33. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 34. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 35. └─rtables::format_rcell(...) 36. └─formatters::format_value(...) 37. └─base::match.arg(round_type) ── Error ('test-chevron_tlg-methods.R:97:5'): run print internal functions when unwrap is TRUE and standard chevron_tlg has no layout ── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-chevron_tlg-methods.R:96:3 2. │ └─base::force(code) 3. ├─testthat::capture_output(...) at test-chevron_tlg-methods.R:97:5 4. │ └─testthat::capture_output_lines(code, print, width = width) 5. │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ └─base::force(code) 8. │ └─base::withVisible(code) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset) 14. │ └─base::lapply(...) 15. │ └─tern (local) FUN(X[[i]], ...) 16. │ └─df_grp %>% ... 17. ├─dplyr::summarise(...) 18. ├─dplyr:::summarise.grouped_df(...) 19. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 20. │ ├─base::withCallingHandlers(...) 21. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 22. │ └─base::lapply(.x, .f, ...) 23. │ └─dplyr (local) FUN(X[[i]], ...) 24. │ └─mask$eval_all_summarise(quo) 25. │ └─dplyr (local) eval() 26. ├─tern::h_format_row(...) 27. │ ├─base::do.call(...) 28. │ └─base::lapply(...) 29. │ └─tern (local) FUN(X[[i]], ...) 30. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 31. │ └─rtables::format_rcell(x = x, format = format) 32. │ └─formatters::format_value(...) 33. │ └─base::match.arg(round_type) 34. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 35. └─base::.handleSimpleError(...) 36. └─dplyr (local) h(simpleError(msg, call)) 37. └─dplyr (local) handler(cnd) 38. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-chevron_tlg-methods.R:309:5'): script_funs generates a valid script ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_tempfile(...) at test-chevron_tlg-methods.R:301:3 2. │ └─base::eval(substitute(code), envir = env) 3. │ └─base::eval(substitute(code), envir = env) 4. │ ├─testthat::capture_output(source(tmp, local = TRUE)) at test-chevron_tlg-methods.R:309:5 5. │ │ └─testthat::capture_output_lines(code, print, width = width) 6. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 7. │ │ ├─withr::with_output_sink(path, withVisible(code)) 8. │ │ │ └─base::force(code) 9. │ │ └─base::withVisible(code) 10. │ ├─base::source(tmp, local = TRUE) 11. │ │ ├─base::withVisible(eval(ei, envir)) 12. │ │ └─base::eval(ei, envir) 13. │ │ └─base::eval(ei, envir) 14. │ ├─chevron::run(...) 15. │ └─chevron::run(...) 16. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 17. │ └─base::do.call(what, new_args, envir = args_env) 18. └─chevron (local) ``(adam_db = adam_db, arm_var = arm_var) 19. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 20. └─rtables::update_ref_indexing(tab) 21. ├─formatters::make_row_df(tt) 22. └─rtables::make_row_df(tt) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::make_row_df(...) 34. └─rtables::make_row_df(...) 35. └─rtables (local) .local(...) 36. ├─formatters::pagdfrow(...) 37. │ └─base::data.frame(...) 38. ├─formatters::nlines(...) 39. └─rtables::nlines(...) 40. ├─base::as.vector(get_formatted_cells(x)) 41. ├─rtables::get_formatted_cells(x) 42. └─rtables::get_formatted_cells(x) 43. ├─base::matrix(...) 44. ├─base::unlist(...) 45. └─base::Map(...) 46. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 47. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 48. └─rtables::format_rcell(...) 49. └─formatters::format_value(...) 50. └─base::match.arg(round_type) ── Error ('test-cmt01a.R:5:3'): cmt01a functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::cmt01a_main(pre_data) at test-cmt01a.R:5:3 2. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-cmt01a.R:13:3'): cmt01a functions with custom argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::cmt01a_main(...) at test-cmt01a.R:13:3 2. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-cmt01a.R:34:3'): cmt01a can handle all NA values ─────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(cmt01a, proc_data)) at test-cmt01a.R:34:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(cmt01a, proc_data) 10. ├─chevron::run(cmt01a, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-cmt01a.R:43:3'): cmt01a can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(cmt01a, proc_data)) at test-cmt01a.R:43:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(cmt01a, proc_data) 10. ├─chevron::run(cmt01a, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-cmt02_pt.R:8:3'): cmt02_pt can handle all NA values ──────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(cmt02_pt, proc_data)) at test-cmt02_pt.R:8:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(cmt02_pt, proc_data) 10. ├─chevron::run(cmt02_pt, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-cmt02_pt.R:17:3'): cmt02_pt can handle some NA values ────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(cmt02_pt, proc_data)) at test-cmt02_pt.R:17:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(cmt02_pt, proc_data) 10. ├─chevron::run(cmt02_pt, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-coxt01.R:5:3'): coxt01 can handle some NA values ─────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(res1 <- run(coxt01, proc_data)) at test-coxt01.R:5:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(coxt01, proc_data) 10. ├─chevron::run(coxt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adtte) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::pagdfrow(...) 32. │ └─base::data.frame(...) 33. ├─formatters::nlines(...) 34. └─rtables::nlines(...) 35. ├─base::as.vector(get_formatted_cells(x)) 36. ├─rtables::get_formatted_cells(x) 37. └─rtables::get_formatted_cells(x) 38. ├─base::matrix(...) 39. ├─base::unlist(...) 40. └─base::Map(...) 41. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 42. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 43. └─rtables::format_rcell(...) 44. └─formatters::format_value(...) 45. └─base::match.arg(round_type) ── Error ('test-coxt02.R:4:3'): coxt02 can handle some NA values ─────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(coxt02, proc_data)) at test-coxt02.R:4:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(coxt02, proc_data) 10. ├─chevron::run(coxt02, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adtte) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::pagdfrow(...) 32. │ └─base::data.frame(...) 33. ├─formatters::nlines(...) 34. └─rtables::nlines(...) 35. ├─base::as.vector(get_formatted_cells(x)) 36. ├─rtables::get_formatted_cells(x) 37. └─rtables::get_formatted_cells(x) 38. ├─base::matrix(...) 39. ├─base::unlist(...) 40. └─base::Map(...) 41. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 42. └─rtables (local) ``(val = dots[[1L]][[3L]], spn = dots[[2L]][[3L]], shelli = dots[[3L]][[1L]]) 43. └─rtables::format_rcell(...) 44. └─formatters::format_value(...) 45. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:10:3'): aet01 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet01_main(pre_data) at test-default_tlg.R:10:3 2. ├─base::rbind(...) 3. ├─base::rbind(...) 4. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::pagdfrow(...) 13. │ └─base::data.frame(...) 14. ├─formatters::nlines(...) 15. └─rtables::nlines(...) 16. ├─base::as.vector(get_formatted_cells(x)) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:17:3'): aet01_aesi function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet01_aesi_main(pre_data) at test-default_tlg.R:17:3 2. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:24:3'): aet02 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet02_main(pre_data) at test-default_tlg.R:24:3 2. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:31:3'): aet03 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet03_main(pre_data) at test-default_tlg.R:31:3 2. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:38:3'): aet04 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet04_main(pre_data) at test-default_tlg.R:38:3 2. └─rtables::build_table(lyt, df = adam_db$adae, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:45:3'): aet05 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet05_main(pre_data) at test-default_tlg.R:45:3 2. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:52:3'): aet05_all functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet05_main(pre_data) at test-default_tlg.R:52:3 2. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:59:3'): aet10 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::aet10_main(pre_data) at test-default_tlg.R:59:3 2. └─rtables::build_table(lyt, adam_db$adae, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:66:3'): cmt02_pt functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::cmt02_pt_main(pre_data) at test-default_tlg.R:66:3 2. └─rtables::build_table(lyt, adam_db$adcm, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:76:3'): coxt01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::coxt01_main(pre_data) at test-default_tlg.R:76:3 2. └─rtables::build_table(lyt, adam_db$adtte) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:84:3'): coxt02 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::coxt02_main(pre_data) at test-default_tlg.R:84:3 2. └─rtables::build_table(lyt, adam_db$adtte) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[3L]], spn = dots[[2L]][[3L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:91:3'): dmt01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::dmt01_main(pre_data) at test-default_tlg.R:91:3 2. └─rtables::build_table(lyt, adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:98:3'): dst01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::dst01_main(pre_data) at test-default_tlg.R:98:3 2. └─rtables::build_table(lyt, adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-default_tlg.R:105:3'): dtht01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::dtht01_main(pre_data) at test-default_tlg.R:105:3 2. └─rtables::build_table(lyt, adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-dmt01.R:7:3'): dmt01 can handle NA values ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dmt01, proc_data)) at test-dmt01.R:7:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dmt01, proc_data) 10. ├─chevron::run(dmt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:15:3'): dmt01 can handle numeric NA values ───────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dmt01, proc_data)) at test-dmt01.R:15:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dmt01, proc_data) 10. ├─chevron::run(dmt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:36:3'): dmt01 works as expected with setting default precision ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:36:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, summaryvars = summaryvars, precision = precision) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:42:3'): dmt01 works as expected with auto precision settings ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:42:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, summaryvars = summaryvars, precision = precision) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:48:3'): dmt01 works as expected with auto precision settings and defined precision ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:48:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, summaryvars = summaryvars, precision = precision) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:54:3'): dmt01 works as expected with auto precision settings and defined precision and default ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:54:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, summaryvars = summaryvars, precision = precision) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:62:3'): dmt01 works as expected with cutomized stats value ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:62:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:76:3'): dmt01 works as expected with empty list as stats value ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dmt01.R:76:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dmt01.R:90:3'): dmt01 works as expected with only one summaryvars ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dmt01, syn_data, summaryvars = c("RACE"))) at test-dmt01.R:90:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dmt01, syn_data, summaryvars = c("RACE")) 10. ├─chevron::run(dmt01, syn_data, summaryvars = c("RACE")) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, summaryvars = summaryvars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-dst01.R:10:3'): dst01 works as expected when all data are NA ─── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(res <- run(dst01, proc_data, detail_vars = list())) at test-dst01.R:10:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dst01, proc_data, detail_vars = list()) 10. ├─chevron::run(dst01, proc_data, detail_vars = list()) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dst01.R:22:3'): dst01 can handle all NA values in DCSREAS ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dst01, proc_data, detail_vars = list())) at test-dst01.R:22:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dst01, proc_data, detail_vars = list()) 10. ├─chevron::run(dst01, proc_data, detail_vars = list()) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dst01.R:30:3'): dst01 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dst01, proc_data)) at test-dst01.R:30:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dst01, proc_data) 10. ├─chevron::run(dst01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-dst01.R:41:3'): dst01 can handle missing levels in status_var ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(dst01, proc_data, detail_vars = list())) at test-dst01.R:41:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(dst01, proc_data, detail_vars = list()) 10. ├─chevron::run(dst01, proc_data, detail_vars = list()) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dst01.R:47:3'): dst01 can create variants ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dst01.R:47:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dst01.R:55:3'): dst01 can create variants ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dst01.R:55:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-dst01.R:61:3'): dst01 can create variants ────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dst01.R:61:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, detail_vars = detail_vars, trt_status_var = trt_status_var) 14. └─rtables::build_table(lyt, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-dtht01.R:11:3'): dtht01 can handle all NA values ─────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dtht01.R:11:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dtht01.R:19:3'): dtht01 can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-dtht01.R:19:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-dtht01.R:30:3'): dtht01 can be parametrize as expected ───────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::dtht01_main(pre_data, time_since_last_dose = TRUE, other_category = TRUE) at test-dtht01.R:30:3 2. └─rtables::build_table(lyt, adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-egt01.R:5:3'): egt01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::egt01_main(pre_data) at test-egt01.R:5:3 2. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-egt01.R:18:3'): egt01 can handle n = 0 and outputs NE instead of infs and NAs ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-egt01.R:18:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(egt01, proc_data, precision = list(HR = 1, default = 0)) 10. ├─chevron::run(egt01, proc_data, precision = list(HR = 1, default = 0)) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, precision = precision) 14. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-egt02.R:5:3'): egt02_1 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::egt02_1_main(pre_data) at test-egt02.R:5:3 2. └─rtables::build_table(lyt, adam_db$adeg, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-egt02.R:13:3'): egt02_2 functions with default value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::egt02_2_main(pre_data) at test-egt02.R:13:3 2. └─rtables::build_table(lyt, adam_db$adeg, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-egt03.R:5:3'): egt03 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::egt03_main(pre_data) at test-egt03.R:5:3 2. └─rtables::build_table(lyt, df = adam_db$adeg) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-egt03.R:29:3'): egt03 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(egt03, proc_data)) at test-egt03.R:29:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(egt03, proc_data) 10. ├─chevron::run(egt03, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adeg) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-egt05_qtcat.R:5:3'): egt05_qtcat functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::egt05_qtcat_main(pre_data) at test-egt05_qtcat.R:5:3 2. └─rtables::build_table(lyt, df = adam_db$adeg, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-egt05_qtcat.R:29:3'): egt05_qtcat can handle some NA values ──── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(egt05_qtcat, proc_data)) at test-egt05_qtcat.R:29:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(egt05_qtcat, proc_data) 10. ├─chevron::run(egt05_qtcat, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, df = adam_db$adeg, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-empty_report.R:19:3'): tlg functions return null reports when domain table is empty ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(aet01, dat_empty, prune_0 = TRUE) at test-empty_report.R:19:3 2. ├─chevron::run(aet01, dat_empty, prune_0 = TRUE) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0) 6. ├─base::rbind(...) 7. ├─base::rbind(...) 8. └─rtables::build_table(lyts$ae1, adam_db$adae, alt_counts_df = adam_db$adsl) 9. └─rtables::update_ref_indexing(tab) 10. ├─formatters::make_row_df(tt) 11. └─rtables::make_row_df(tt) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-ext01.R:5:3'): ext01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::ext01_main(pre_data) at test-ext01.R:5:3 2. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-ext01.R:14:3'): ext01 functions with categorical data return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::ext01_main(pre_data, summaryvars = c("AVAL", "AVALCAT1")) at test-ext01.R:14:3 2. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-ext01.R:24:3'): ext01 works ──────────────────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(ext01, proc_data)) at test-ext01.R:24:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(ext01, proc_data) 10. ├─chevron::run(ext01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-ext01.R:38:3'): ext01 works for selected parameters and categorical variables ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(...) at test-ext01.R:38:3 2. ├─chevron::run(...) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0, summaryvars = summaryvars) 6. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-ext01.R:50:3'): ext01 works with custom mapping order ────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(...) at test-ext01.R:50:3 2. ├─chevron::run(...) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(...) 6. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-ext01.R:60:3'): ext01 works with custom mapping order for a single split ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(...) at test-ext01.R:60:3 2. ├─chevron::run(...) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(...) 6. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-ext01.R:72:3'): ext01 works with custom mapping fill in value ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(...) at test-ext01.R:72:3 2. ├─chevron::run(...) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(...) 6. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-ext01.R:78:3'): ext01 precision argument works as expected ───── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(ext01, syn_data, precision = list(TDOSE = 4, default = 0)) at test-ext01.R:78:3 2. ├─chevron::run(ext01, syn_data, precision = list(TDOSE = 4, default = 0)) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, precision = precision) 6. └─rtables::build_table(lyt, adam_db$adex, adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-fstg01.R:6:3'): fstg01 works as expected ─────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(fstg01_main(pre_data, dataset = "adrs")) at test-fstg01.R:6:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::fstg01_main(pre_data, dataset = "adrs") 10. │ └─basic_table() %>% tabulate_rsp_subgroups(df, vars = stat_var) 11. └─tern::tabulate_rsp_subgroups(., df, vars = stat_var) 12. └─rtables::build_table(lyt_prop, df = df$prop) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::make_row_df(...) 27. └─rtables::make_row_df(...) 28. └─rtables (local) .local(...) 29. ├─formatters::pagdfrow(...) 30. │ └─base::data.frame(...) 31. ├─formatters::nlines(...) 32. └─rtables::nlines(...) 33. ├─base::as.vector(get_formatted_cells(x)) 34. ├─rtables::get_formatted_cells(x) 35. └─rtables::get_formatted_cells(x) 36. ├─base::matrix(...) 37. ├─base::unlist(...) 38. └─base::Map(...) 39. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 40. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 41. └─rtables::format_rcell(...) 42. └─formatters::format_value(...) 43. └─base::match.arg(round_type) ── Error ('test-fstg01.R:16:3'): fstg01 works as expected with custom color set ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-fstg01.R:16:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(...) 14. │ └─basic_table() %>% tabulate_rsp_subgroups(df, vars = stat_var) 15. └─tern::tabulate_rsp_subgroups(., df, vars = stat_var) 16. └─rtables::build_table(lyt_prop, df = df$prop) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::pagdfrow(...) 34. │ └─base::data.frame(...) 35. ├─formatters::nlines(...) 36. └─rtables::nlines(...) 37. ├─base::as.vector(get_formatted_cells(x)) 38. ├─rtables::get_formatted_cells(x) 39. └─rtables::get_formatted_cells(x) 40. ├─base::matrix(...) 41. ├─base::unlist(...) 42. └─base::Map(...) 43. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 44. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 45. └─rtables::format_rcell(...) 46. └─formatters::format_value(...) 47. └─base::match.arg(round_type) ── Error ('test-fstg01.R:27:3'): fstg01 works if changes are in subgroups, conf_level, and label_all ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-fstg01.R:27:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(...) 14. │ └─basic_table() %>% tabulate_rsp_subgroups(df, vars = stat_var) 15. └─tern::tabulate_rsp_subgroups(., df, vars = stat_var) 16. └─rtables::build_table(lyt_prop, df = df$prop) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::pagdfrow(...) 31. │ └─base::data.frame(...) 32. ├─formatters::nlines(...) 33. └─rtables::nlines(...) 34. ├─base::as.vector(get_formatted_cells(x)) 35. ├─rtables::get_formatted_cells(x) 36. └─rtables::get_formatted_cells(x) 37. ├─base::matrix(...) 38. ├─base::unlist(...) 39. └─base::Map(...) 40. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 41. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 42. └─rtables::format_rcell(...) 43. └─formatters::format_value(...) 44. └─base::match.arg(round_type) ── Error ('test-fstg01.R:44:3'): fstg01 can handle some NA values in subgroups ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-fstg01.R:44:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(fstg01, proc_data, response = c("CR", "PR"), dataset = "adrs") 10. ├─chevron::run(fstg01, proc_data, response = c("CR", "PR"), dataset = "adrs") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, response = response, dataset = dataset) 14. │ └─basic_table() %>% tabulate_rsp_subgroups(df, vars = stat_var) 15. └─tern::tabulate_rsp_subgroups(., df, vars = stat_var) 16. └─rtables::build_table(lyt_prop, df = df$prop) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::pagdfrow(...) 34. │ └─base::data.frame(...) 35. ├─formatters::nlines(...) 36. └─rtables::nlines(...) 37. ├─base::as.vector(get_formatted_cells(x)) 38. ├─rtables::get_formatted_cells(x) 39. └─rtables::get_formatted_cells(x) 40. ├─base::matrix(...) 41. ├─base::unlist(...) 42. └─base::Map(...) 43. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 44. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 45. └─rtables::format_rcell(...) 46. └─formatters::format_value(...) 47. └─base::match.arg(round_type) ── Error ('test-fstg02.R:6:3'): fstg02 works as expected ─────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(fstg02_main(pre_data, dataset = "adtte")) at test-fstg02.R:6:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::fstg02_main(pre_data, dataset = "adtte") 10. │ └─basic_table() %>% ... 11. └─tern::tabulate_survival_subgroups(., df, vars = stat_var, time_unit = timeunit) 12. └─rtables::build_table(lyt_survtime, df = df$survtime) 13. └─rtables::update_ref_indexing(tab) 14. ├─formatters::make_row_df(tt) 15. └─rtables::make_row_df(tt) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::make_row_df(...) 27. └─rtables::make_row_df(...) 28. └─rtables (local) .local(...) 29. ├─formatters::pagdfrow(...) 30. │ └─base::data.frame(...) 31. ├─formatters::nlines(...) 32. └─rtables::nlines(...) 33. ├─base::as.vector(get_formatted_cells(x)) 34. ├─rtables::get_formatted_cells(x) 35. └─rtables::get_formatted_cells(x) 36. ├─base::matrix(...) 37. ├─base::unlist(...) 38. └─base::Map(...) 39. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 40. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 41. └─rtables::format_rcell(...) 42. └─formatters::format_value(...) 43. └─base::match.arg(round_type) ── Error ('test-fstg02.R:16:3'): fstg02 works as expected with custom color set ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-fstg02.R:16:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(fstg02, proc_data, dataset = "adtte", col = "gray") 10. ├─chevron::run(fstg02, proc_data, dataset = "adtte", col = "gray") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, col = col) 14. │ └─basic_table() %>% ... 15. └─tern::tabulate_survival_subgroups(., df, vars = stat_var, time_unit = timeunit) 16. └─rtables::build_table(lyt_survtime, df = df$survtime) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::pagdfrow(...) 34. │ └─base::data.frame(...) 35. ├─formatters::nlines(...) 36. └─rtables::nlines(...) 37. ├─base::as.vector(get_formatted_cells(x)) 38. ├─rtables::get_formatted_cells(x) 39. └─rtables::get_formatted_cells(x) 40. ├─base::matrix(...) 41. ├─base::unlist(...) 42. └─base::Map(...) 43. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 44. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 45. └─rtables::format_rcell(...) 46. └─formatters::format_value(...) 47. └─base::match.arg(round_type) ── Error ('test-fstg02.R:27:3'): fstg02 works if changes are in subgroups, strata_var, conf_level, and label_all ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-fstg02.R:27:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(fstg02, proc_data, subgroups = NULL, dataset = "adtte") 10. ├─chevron::run(fstg02, proc_data, subgroups = NULL, dataset = "adtte") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, subgroups = subgroups, dataset = dataset) 14. │ └─basic_table() %>% ... 15. └─tern::tabulate_survival_subgroups(., df, vars = stat_var, time_unit = timeunit) 16. └─rtables::build_table(lyt_survtime, df = df$survtime) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::pagdfrow(...) 31. │ └─base::data.frame(...) 32. ├─formatters::nlines(...) 33. └─rtables::nlines(...) 34. ├─base::as.vector(get_formatted_cells(x)) 35. ├─rtables::get_formatted_cells(x) 36. └─rtables::get_formatted_cells(x) 37. ├─base::matrix(...) 38. ├─base::unlist(...) 39. └─base::Map(...) 40. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 41. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 42. └─rtables::format_rcell(...) 43. └─formatters::format_value(...) 44. └─base::match.arg(round_type) ── Error ('test-fstg02.R:44:3'): fstg02 can handle some NA values in subgroups ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(fstg02, proc_data, dataset = "adtte")) at test-fstg02.R:44:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(fstg02, proc_data, dataset = "adtte") 10. ├─chevron::run(fstg02, proc_data, dataset = "adtte") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset) 14. │ └─basic_table() %>% ... 15. └─tern::tabulate_survival_subgroups(., df, vars = stat_var, time_unit = timeunit) 16. └─rtables::build_table(lyt_survtime, df = df$survtime) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::pagdfrow(...) 34. │ └─base::data.frame(...) 35. ├─formatters::nlines(...) 36. └─rtables::nlines(...) 37. ├─base::as.vector(get_formatted_cells(x)) 38. ├─rtables::get_formatted_cells(x) 39. └─rtables::get_formatted_cells(x) 40. ├─base::matrix(...) 41. ├─base::unlist(...) 42. └─base::Map(...) 43. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 44. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 45. └─rtables::format_rcell(...) 46. └─formatters::format_value(...) 47. └─base::match.arg(round_type) ── Error ('test-fstg02.R:59:3'): fstg02 can handle customized time units ─────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(fstg02, proc_data, dataset = "adtte")) at test-fstg02.R:59:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(fstg02, proc_data, dataset = "adtte") 10. ├─chevron::run(fstg02, proc_data, dataset = "adtte") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset) 14. │ └─basic_table() %>% ... 15. └─tern::tabulate_survival_subgroups(., df, vars = stat_var, time_unit = timeunit) 16. └─rtables::build_table(lyt_survtime, df = df$survtime) 17. └─rtables::update_ref_indexing(tab) 18. ├─formatters::make_row_df(tt) 19. └─rtables::make_row_df(tt) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::make_row_df(...) 25. └─rtables::make_row_df(...) 26. └─rtables (local) .local(...) 27. ├─formatters::make_row_df(...) 28. └─rtables::make_row_df(...) 29. └─rtables (local) .local(...) 30. ├─formatters::make_row_df(...) 31. └─rtables::make_row_df(...) 32. └─rtables (local) .local(...) 33. ├─formatters::pagdfrow(...) 34. │ └─base::data.frame(...) 35. ├─formatters::nlines(...) 36. └─rtables::nlines(...) 37. ├─base::as.vector(get_formatted_cells(x)) 38. ├─rtables::get_formatted_cells(x) 39. └─rtables::get_formatted_cells(x) 40. ├─base::matrix(...) 41. ├─base::unlist(...) 42. └─base::Map(...) 43. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 44. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 45. └─rtables::format_rcell(...) 46. └─formatters::format_value(...) 47. └─base::match.arg(round_type) ── Error ('test-lbt01.R:9:3'): lbt01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt01_main(pre_data) at test-lbt01.R:9:3 2. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt01.R:19:3'): lbt01 functions with row_split_var return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt01_main(pre_data, row_split_var = "LBCAT", precision = list(ALT = 0)) at test-lbt01.R:19:3 2. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt01.R:32:3'): lbt01 can handle n = 0 and outputs NE instead of infs and NAs ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-lbt01.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt01, proc_data, precision = list(ALT = 0, CRP = 1)) 10. ├─chevron::run(lbt01, proc_data, precision = list(ALT = 0, CRP = 1)) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, precision = precision) 14. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt04.R:5:3'): lbt04 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt04_main(pre_data) at test-lbt04.R:5:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt04.R:21:3'): lbt04 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─base::cat(export_as_txt(res, lpp = 100)) 2. └─formatters::export_as_txt(res, lpp = 100) 3. └─formatters::paginate_to_mpfs(...) 4. ├─formatters::matrix_form(...) 5. └─rtables::matrix_form(...) 6. └─rtables:::.tbl_header_mat(obj) 7. ├─base::matrix(...) 8. └─base::rapply(...) 9. └─rtables (local) ``(X, ...) 10. ├─rtables::get_formatted_cells(x) 11. └─rtables::get_formatted_cells(x) 12. ├─base::matrix(...) 13. ├─base::unlist(...) 14. └─base::Map(...) 15. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 16. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 17. └─rtables::format_rcell(...) 18. └─formatters::format_value(...) 19. └─base::match.arg(round_type) ── Error ('test-lbt04.R:32:3'): lbt04 can handle missing levels ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt04, proc_data)) at test-lbt04.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt04, proc_data) 10. ├─chevron::run(lbt04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt04.R:41:3'): lbt04 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt04, proc_data)) at test-lbt04.R:41:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt04, proc_data) 10. ├─chevron::run(lbt04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt05.R:5:3'): lbt05 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt05_main(pre_data) at test-lbt05.R:5:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-lbt05.R:22:3'): lbt05 give all 0 count if ANRIND are all missing ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(lbt05, proc_data, map = NULL) at test-lbt05.R:22:3 2. ├─chevron::run(lbt05, proc_data, map = NULL) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, map = map) 6. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::pagdfrow(...) 21. │ └─base::data.frame(...) 22. ├─formatters::nlines(...) 23. └─rtables::nlines(...) 24. ├─base::as.vector(get_formatted_cells(x)) 25. ├─rtables::get_formatted_cells(x) 26. └─rtables::get_formatted_cells(x) 27. ├─base::matrix(...) 28. ├─base::unlist(...) 29. └─base::Map(...) 30. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 31. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 32. └─rtables::format_rcell(...) 33. └─formatters::format_value(...) 34. └─base::match.arg(round_type) ── Error ('test-lbt05.R:37:3'): lbt05 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt05, proc_data)) at test-lbt05.R:37:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt05, proc_data) 10. ├─chevron::run(lbt05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt05.R:54:3'): lbt05 works with missing levels ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt05, proc_data)) at test-lbt05.R:54:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt05, proc_data) 10. ├─chevron::run(lbt05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt05.R:61:3'): map argument works as expected ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt05, syn_data, map = map)) at test-lbt05.R:61:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt05, syn_data, map = map) 10. ├─chevron::run(lbt05, syn_data, map = map) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, map = map) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt05.R:68:3'): incomplete map argument works as expected ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt05, syn_data, map = map)) at test-lbt05.R:68:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt05, syn_data, map = map) 10. ├─chevron::run(lbt05, syn_data, map = map) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, map = map) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt05.R:74:3'): prune_0 keeps the `Any Abnormaility` row ─────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt05, syn_data, prune_0 = TRUE)) at test-lbt05.R:74:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt05, syn_data, prune_0 = TRUE) 10. ├─chevron::run(lbt05, syn_data, prune_0 = TRUE) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, prune_0 = prune_0) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt06.R:9:3'): lbt06 gives all 0 count if ANRIND and BNRIND are all missing ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt06_main(df_pre) at test-lbt06.R:9:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt06.R:19:3'): lbt06 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt06_main(df_pre) at test-lbt06.R:19:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt07.R:5:3'): lbt07 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt07_main(pre_data) at test-lbt07.R:5:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-lbt07.R:22:3'): lbt07 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt07, proc_data)) at test-lbt07.R:22:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt07, proc_data) 10. ├─chevron::run(lbt07, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-lbt14.R:9:3'): lbt14 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt14_main(pre_data) at test-lbt14.R:9:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt14.R:17:3'): lbt14 functions with default argument value return expected result with test data when direction = high ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt14_main(pre_data, direction = "high") at test-lbt14.R:17:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt14.R:25:3'): lbt14 functions with `gr_missing = excl` return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt14_main(pre_data) at test-lbt14.R:25:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt14.R:33:3'): lbt14 functions with `gr_missing = gr_0` return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt14_main(pre_data) at test-lbt14.R:33:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt14.R:48:3'): lbt14 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt14, proc_data)) at test-lbt14.R:48:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt14, proc_data) 10. ├─chevron::run(lbt14, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt14.R:68:3'): lbt14 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt14, proc_data)) at test-lbt14.R:68:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt14, proc_data) 10. ├─chevron::run(lbt14, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt14.R:74:3'): lbt14 can accept different gr_missing ────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(lbt14, syn_lab, gr_missing = "incl") at test-lbt14.R:74:3 2. ├─chevron::run(lbt14, syn_lab, gr_missing = "incl") 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, gr_missing = gr_missing) 6. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-lbt14.R:103:3'): lbt14 can handle all NA values with direction = high ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt14, proc_data, direction = "high")) at test-lbt14.R:103:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt14, proc_data, direction = "high") 10. ├─chevron::run(lbt14, proc_data, direction = "high") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, direction = direction) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt14.R:123:3'): lbt14 can handle some NA values with direction = high ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt14, proc_data, direction = "high")) at test-lbt14.R:123:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt14, proc_data, direction = "high") 10. ├─chevron::run(lbt14, proc_data, direction = "high") 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, direction = direction) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt14.R:130:3'): lbt14 can accept different gr_missing with direction = high ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(lbt14, proc_data, gr_missing = "incl", direction = "high") at test-lbt14.R:130:3 2. ├─chevron::run(lbt14, proc_data, gr_missing = "incl", direction = "high") 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, gr_missing = gr_missing, direction = direction) 6. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::make_row_df(...) 18. └─rtables::make_row_df(...) 19. └─rtables (local) .local(...) 20. ├─formatters::make_row_df(...) 21. └─rtables::make_row_df(...) 22. └─rtables (local) .local(...) 23. ├─formatters::make_row_df(...) 24. └─rtables::make_row_df(...) 25. └─rtables (local) .local(...) 26. ├─formatters::pagdfrow(...) 27. │ └─base::data.frame(...) 28. ├─formatters::nlines(...) 29. └─rtables::nlines(...) 30. ├─base::as.vector(get_formatted_cells(x)) 31. ├─rtables::get_formatted_cells(x) 32. └─rtables::get_formatted_cells(x) 33. ├─base::matrix(...) 34. ├─base::unlist(...) 35. └─base::Map(...) 36. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 37. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 38. └─rtables::format_rcell(...) 39. └─formatters::format_value(...) 40. └─base::match.arg(round_type) ── Error ('test-lbt15.R:5:3'): lbt15 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::lbt04_main(pre_data) at test-lbt15.R:5:3 2. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-lbt15.R:20:3'): lbt15 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt15, proc_data)) at test-lbt15.R:20:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt15, proc_data) 10. ├─chevron::run(lbt15, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt15.R:32:3'): lbt15 can handle missing levels ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt15, proc_data)) at test-lbt15.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt15, proc_data) 10. ├─chevron::run(lbt15, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt15.R:44:3'): lbt15 can handle missing levels in baseline ──── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt15, proc_data)) at test-lbt15.R:44:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt15, proc_data) 10. ├─chevron::run(lbt15, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt15.R:53:3'): lbt15 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt15, proc_data)) at test-lbt15.R:53:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt15, proc_data) 10. ├─chevron::run(lbt15, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-lbt15.R:62:3'): lbt15 can handle some NA values in baseline ──── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(lbt15, proc_data)) at test-lbt15.R:62:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(lbt15, proc_data) 10. ├─chevron::run(lbt15, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adlb, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-mht01.R:5:3'): mht01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::mht01_main(pre_data) at test-mht01.R:5:3 2. └─rtables::build_table(lyt, adam_db$admh, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-mht01.R:15:3'): mht01 works ──────────────────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(mht01, proc_data) at test-mht01.R:15:3 2. ├─chevron::run(mht01, proc_data) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db) 6. └─rtables::build_table(lyt, adam_db$admh, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-mht01.R:22:3'): mht01 works on NULL in lbl_mhbodsys or lbl_mhdecod ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(mht01, proc_data, lbl_mhbodsys = NULL, lbl_mhdecod = NULL) at test-mht01.R:22:3 2. ├─chevron::run(mht01, proc_data, lbl_mhbodsys = NULL, lbl_mhdecod = NULL) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, lbl_mhbodsys = lbl_mhbodsys, lbl_mhdecod = lbl_mhdecod) 6. └─rtables::build_table(lyt, adam_db$admh, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-mht01.R:29:3'): mht01 works with other row_split_var ─────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─chevron::run(mht01, proc_data, row_split_var = c("SEX", "ETHNIC")) at test-mht01.R:29:3 2. ├─chevron::run(mht01, proc_data, row_split_var = c("SEX", "ETHNIC")) 3. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 4. │ └─base::do.call(what, new_args, envir = args_env) 5. └─chevron (local) ``(adam_db = adam_db, row_split_var = row_split_var) 6. └─rtables::build_table(lyt, adam_db$admh, alt_counts_df = adam_db$adsl) 7. └─rtables::update_ref_indexing(tab) 8. ├─formatters::make_row_df(tt) 9. └─rtables::make_row_df(tt) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-mng01.R:6:5'): mng01 works as expected with default argument values ── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:4:3 2. │ └─base::force(code) 3. ├─chevron::mng01_main(pre_data, dataset = "adlb") at test-mng01.R:6:5 4. │ └─base::lapply(...) 5. │ └─tern (local) FUN(X[[i]], ...) 6. │ └─df_grp %>% ... 7. ├─dplyr::summarise(...) 8. ├─dplyr:::summarise.grouped_df(...) 9. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 10. │ ├─base::withCallingHandlers(...) 11. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 12. │ └─base::lapply(.x, .f, ...) 13. │ └─dplyr (local) FUN(X[[i]], ...) 14. │ └─mask$eval_all_summarise(quo) 15. │ └─dplyr (local) eval() 16. ├─tern::h_format_row(...) 17. │ ├─base::do.call(...) 18. │ └─base::lapply(...) 19. │ └─tern (local) FUN(X[[i]], ...) 20. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 21. │ └─rtables::format_rcell(x = x, format = format) 22. │ └─formatters::format_value(...) 23. │ └─base::match.arg(round_type) 24. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 25. └─base::.handleSimpleError(...) 26. └─dplyr (local) h(simpleError(msg, call)) 27. └─dplyr (local) handler(cnd) 28. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:25:5'): mng01 works as expected with custom argument values ── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:16:3 2. │ └─base::force(code) 3. ├─chevron::mng01_main(...) at test-mng01.R:25:5 4. │ └─base::lapply(...) 5. │ └─tern (local) FUN(X[[i]], ...) 6. │ └─df_grp %>% ... 7. ├─dplyr::summarise(...) 8. ├─dplyr:::summarise.grouped_df(...) 9. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 10. │ ├─base::withCallingHandlers(...) 11. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 12. │ └─base::lapply(.x, .f, ...) 13. │ └─dplyr (local) FUN(X[[i]], ...) 14. │ └─mask$eval_all_summarise(quo) 15. │ └─dplyr (local) eval() 16. ├─tern::h_format_row(...) 17. │ ├─base::do.call(...) 18. │ └─base::lapply(...) 19. │ └─tern (local) FUN(X[[i]], ...) 20. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 21. │ └─rtables::format_rcell(x = x, format = format) 22. │ └─formatters::format_value(...) 23. │ └─base::match.arg(round_type) 24. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 25. └─base::.handleSimpleError(...) 26. └─dplyr (local) h(simpleError(msg, call)) 27. └─dplyr (local) handler(cnd) 28. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:63:5'): mng01 works as expected with custom color set ── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:55:3 2. │ └─base::force(code) 3. ├─chevron::run(mng01, proc_data, dataset = "adlb", line_col = col) at test-mng01.R:63:5 4. ├─chevron::run(mng01, proc_data, dataset = "adlb", line_col = col) 5. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 6. │ └─base::do.call(what, new_args, envir = args_env) 7. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, line_col = line_col) 8. │ └─base::lapply(...) 9. │ └─tern (local) FUN(X[[i]], ...) 10. │ └─df_grp %>% ... 11. ├─dplyr::summarise(...) 12. ├─dplyr:::summarise.grouped_df(...) 13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 14. │ ├─base::withCallingHandlers(...) 15. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 16. │ └─base::lapply(.x, .f, ...) 17. │ └─dplyr (local) FUN(X[[i]], ...) 18. │ └─mask$eval_all_summarise(quo) 19. │ └─dplyr (local) eval() 20. ├─tern::h_format_row(...) 21. │ ├─base::do.call(...) 22. │ └─base::lapply(...) 23. │ └─tern (local) FUN(X[[i]], ...) 24. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 25. │ └─rtables::format_rcell(x = x, format = format) 26. │ └─formatters::format_value(...) 27. │ └─base::match.arg(round_type) 28. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 29. └─base::.handleSimpleError(...) 30. └─dplyr (local) h(simpleError(msg, call)) 31. └─dplyr (local) handler(cnd) 32. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:85:5'): mng01 works as expected with custom line type set ── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:77:3 2. │ └─base::force(code) 3. ├─chevron::run(mng01, proc_data, dataset = "adlb", line_type = lty) at test-mng01.R:85:5 4. ├─chevron::run(mng01, proc_data, dataset = "adlb", line_type = lty) 5. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 6. │ └─base::do.call(what, new_args, envir = args_env) 7. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, line_type = line_type) 8. │ └─base::lapply(...) 9. │ └─tern (local) FUN(X[[i]], ...) 10. │ └─df_grp %>% ... 11. ├─dplyr::summarise(...) 12. ├─dplyr:::summarise.grouped_df(...) 13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 14. │ ├─base::withCallingHandlers(...) 15. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 16. │ └─base::lapply(.x, .f, ...) 17. │ └─dplyr (local) FUN(X[[i]], ...) 18. │ └─mask$eval_all_summarise(quo) 19. │ └─dplyr (local) eval() 20. ├─tern::h_format_row(...) 21. │ ├─base::do.call(...) 22. │ └─base::lapply(...) 23. │ └─tern (local) FUN(X[[i]], ...) 24. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 25. │ └─rtables::format_rcell(x = x, format = format) 26. │ └─formatters::format_value(...) 27. │ └─base::match.arg(round_type) 28. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 29. └─base::.handleSimpleError(...) 30. └─dplyr (local) h(simpleError(msg, call)) 31. └─dplyr (local) handler(cnd) 32. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:113:5'): mng01 works with combination of x variables ─── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT_AVISITN = BASELINE_0`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:111:3 2. │ └─base::force(code) 3. ├─chevron::run(...) at test-mng01.R:113:5 4. ├─chevron::run(...) 5. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 6. │ └─base::do.call(what, new_args, envir = args_env) 7. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, x_var = x_var) 8. │ └─base::lapply(...) 9. │ └─tern (local) FUN(X[[i]], ...) 10. │ └─df_grp %>% ... 11. ├─dplyr::summarise(...) 12. ├─dplyr:::summarise.grouped_df(...) 13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 14. │ ├─base::withCallingHandlers(...) 15. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 16. │ └─base::lapply(.x, .f, ...) 17. │ └─dplyr (local) FUN(X[[i]], ...) 18. │ └─mask$eval_all_summarise(quo) 19. │ └─dplyr (local) eval() 20. ├─tern::h_format_row(...) 21. │ ├─base::do.call(...) 22. │ └─base::lapply(...) 23. │ └─tern (local) FUN(X[[i]], ...) 24. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 25. │ └─rtables::format_rcell(x = x, format = format) 26. │ └─formatters::format_value(...) 27. │ └─base::match.arg(round_type) 28. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 29. └─base::.handleSimpleError(...) 30. └─dplyr (local) h(simpleError(msg, call)) 31. └─dplyr (local) handler(cnd) 32. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:134:5'): mng01 works with numeric x variable ─────────── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISITN = -3`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:129:3 2. │ └─base::force(code) 3. ├─chevron::run(mng01, proc_data, dataset = "adlb", x_var = c("AVISITN")) at test-mng01.R:134:5 4. ├─chevron::run(mng01, proc_data, dataset = "adlb", x_var = c("AVISITN")) 5. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 6. │ └─base::do.call(what, new_args, envir = args_env) 7. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, x_var = x_var) 8. │ └─base::lapply(...) 9. │ └─tern (local) FUN(X[[i]], ...) 10. │ └─df_grp %>% ... 11. ├─dplyr::summarise(...) 12. ├─dplyr:::summarise.grouped_df(...) 13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 14. │ ├─base::withCallingHandlers(...) 15. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 16. │ └─base::lapply(.x, .f, ...) 17. │ └─dplyr (local) FUN(X[[i]], ...) 18. │ └─mask$eval_all_summarise(quo) 19. │ └─dplyr (local) eval() 20. ├─tern::h_format_row(...) 21. │ ├─base::do.call(...) 22. │ └─base::lapply(...) 23. │ └─tern (local) FUN(X[[i]], ...) 24. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 25. │ └─rtables::format_rcell(x = x, format = format) 26. │ └─formatters::format_value(...) 27. │ └─base::match.arg(round_type) 28. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 29. └─base::.handleSimpleError(...) 30. └─dplyr (local) h(simpleError(msg, call)) 31. └─dplyr (local) handler(cnd) 32. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-mng01.R:153:5'): mng01 works with numeric jitter ─────────────── Error in `dplyr::summarise(., h_format_row(x = sfun(.data[[y]], ...)[table], format = table_format, labels = table_labels), .groups = "drop")`: i In argument: `h_format_row(...)`. i In group 1: `ACTARM = A: Drug X` `AVISIT = BASELINE`. Caused by error in `match.arg()`: ! 'arg' must be of length 1 Backtrace: ▆ 1. ├─withr::with_options(...) at test-mng01.R:150:3 2. │ └─base::force(code) 3. ├─chevron::run(mng01, proc_data, dataset = "adlb", jitter = 0.7) at test-mng01.R:153:5 4. ├─chevron::run(mng01, proc_data, dataset = "adlb", jitter = 0.7) 5. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 6. │ └─base::do.call(what, new_args, envir = args_env) 7. ├─chevron (local) ``(adam_db = adam_db, dataset = dataset, jitter = jitter) 8. │ └─base::lapply(...) 9. │ └─tern (local) FUN(X[[i]], ...) 10. │ └─df_grp %>% ... 11. ├─dplyr::summarise(...) 12. ├─dplyr:::summarise.grouped_df(...) 13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 14. │ ├─base::withCallingHandlers(...) 15. │ └─dplyr:::map(quosures, summarise_eval_one, mask = mask) 16. │ └─base::lapply(.x, .f, ...) 17. │ └─dplyr (local) FUN(X[[i]], ...) 18. │ └─mask$eval_all_summarise(quo) 19. │ └─dplyr (local) eval() 20. ├─tern::h_format_row(...) 21. │ ├─base::do.call(...) 22. │ └─base::lapply(...) 23. │ └─tern (local) FUN(X[[i]], ...) 24. │ └─tern (local) format_cell(x[[xn]], format = format[[xn]], label = labels[xn]) 25. │ └─rtables::format_rcell(x = x, format = format) 26. │ └─formatters::format_value(...) 27. │ └─base::match.arg(round_type) 28. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 29. └─base::.handleSimpleError(...) 30. └─dplyr (local) h(simpleError(msg, call)) 31. └─dplyr (local) handler(cnd) 32. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-pdt01.R:5:3'): pdt01 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::pdt01_main(pre_data) at test-pdt01.R:5:3 2. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-pdt01.R:21:3'): pdt01 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(pdt01, proc_data)) at test-pdt01.R:21:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(pdt01, proc_data) 10. ├─chevron::run(pdt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-pdt01.R:37:3'): pdt01 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(pdt01, proc_data)) at test-pdt01.R:37:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(pdt01, proc_data) 10. ├─chevron::run(pdt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-pdt02.R:5:3'): pdt02 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::pdt02_main(pre_data) at test-pdt02.R:5:3 2. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::pagdfrow(...) 14. │ └─base::data.frame(...) 15. ├─formatters::nlines(...) 16. └─rtables::nlines(...) 17. ├─base::as.vector(get_formatted_cells(x)) 18. ├─rtables::get_formatted_cells(x) 19. └─rtables::get_formatted_cells(x) 20. ├─base::matrix(...) 21. ├─base::unlist(...) 22. └─base::Map(...) 23. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 24. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 25. └─rtables::format_rcell(...) 26. └─formatters::format_value(...) 27. └─base::match.arg(round_type) ── Error ('test-pdt02.R:21:3'): pdt02 can handle all NA values ───────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(pdt02, proc_data)) at test-pdt02.R:21:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(pdt02, proc_data) 10. ├─chevron::run(pdt02, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-pdt02.R:37:3'): pdt02 can handle some NA values ──────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(pdt02, proc_data)) at test-pdt02.R:37:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(pdt02, proc_data) 10. ├─chevron::run(pdt02, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$addv, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-report_null.R:10:3'): report_null works as expected with `VTableTree` ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, iris) at test-report_null.R:10:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::pagdfrow(...) 10. │ └─base::data.frame(...) 11. ├─formatters::nlines(...) 12. └─rtables::nlines(...) 13. ├─base::as.vector(get_formatted_cells(x)) 14. ├─rtables::get_formatted_cells(x) 15. └─rtables::get_formatted_cells(x) 16. ├─base::matrix(...) 17. ├─base::unlist(...) 18. └─base::Map(...) 19. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 20. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 21. └─rtables::format_rcell(...) 22. └─formatters::format_value(...) 23. └─base::match.arg(round_type) ── Error ('test-rmpt01.R:5:3'): rmpt01 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::rmpt01_main(pre_data) at test-rmpt01.R:5:3 2. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-rmpt01.R:17:3'): rmpt01 can handle NA values ─────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt01, proc_data)) at test-rmpt01.R:17:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt01, proc_data) 10. ├─chevron::run(rmpt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt01.R:32:3'): rmpt01 can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt01, proc_data)) at test-rmpt01.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt01, proc_data) 10. ├─chevron::run(rmpt01, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt03.R:8:3'): rmpt03 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::rmpt03_main(pre_data) at test-rmpt03.R:8:3 2. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-rmpt03.R:22:3'): rmpt03 can handle NA values ─────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt03, proc_data)) at test-rmpt03.R:22:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt03, proc_data) 10. ├─chevron::run(rmpt03, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt03.R:39:3'): rmpt03 can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt03, proc_data)) at test-rmpt03.R:39:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt03, proc_data) 10. ├─chevron::run(rmpt03, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt04.R:5:3'): rmpt04 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::rmpt04_main(pre_data) at test-rmpt04.R:5:3 2. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-rmpt04.R:17:3'): rmpt04 can handle NA values ─────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt04, proc_data)) at test-rmpt04.R:17:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt04, proc_data) 10. ├─chevron::run(rmpt04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt04.R:35:3'): rmpt04 can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt04, proc_data)) at test-rmpt04.R:35:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt04, proc_data) 10. ├─chevron::run(rmpt04, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt05.R:5:3'): rmpt05 function with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::rmpt05_main(pre_data) at test-rmpt05.R:5:3 2. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-rmpt05.R:17:3'): rmpt05 can handle NA values ─────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt05, proc_data)) at test-rmpt05.R:17:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt05, proc_data) 10. ├─chevron::run(rmpt05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt05.R:35:3'): rmpt05 can handle some NA values ────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt05, proc_data)) at test-rmpt05.R:35:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt05, proc_data) 10. ├─chevron::run(rmpt05, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt, adam_db$adex, alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rmpt06.R:4:3'): rmpt06 works as expected ─────────────────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'tlg' in selecting a method for function 'report_null': 'arg' must be of length 1 Backtrace: ▆ 1. ├─rmpt06_pre(syn_data) %>% rmpt06_main() %>% rmpt01_post() at test-rmpt06.R:4:3 2. ├─chevron::rmpt01_post(.) 3. │ └─chevron::std_postprocessing(tlg) 4. │ └─chevron::report_null(tlg, ...) 5. ├─chevron::rmpt06_main(.) 6. │ └─rtables::build_table(lyt$adsl, adam_db$adsl) 7. │ └─rtables::update_ref_indexing(tab) 8. │ ├─formatters::make_row_df(tt) 9. │ └─rtables::make_row_df(tt) 10. │ └─rtables (local) .local(...) 11. │ ├─formatters::make_row_df(...) 12. │ └─rtables::make_row_df(...) 13. │ └─rtables (local) .local(...) 14. │ ├─formatters::pagdfrow(...) 15. │ │ └─base::data.frame(...) 16. │ ├─formatters::nlines(...) 17. │ └─rtables::nlines(...) 18. │ ├─base::as.vector(get_formatted_cells(x)) 19. │ ├─rtables::get_formatted_cells(x) 20. │ └─rtables::get_formatted_cells(x) 21. │ ├─base::matrix(...) 22. │ ├─base::unlist(...) 23. │ └─base::Map(...) 24. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 25. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 26. │ └─rtables::format_rcell(...) 27. │ └─formatters::format_value(...) 28. │ └─base::match.arg(round_type) 29. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 30. └─base::.handleSimpleError(...) 31. └─base (local) h(simpleError(msg, call)) ── Error ('test-rmpt06.R:13:3'): rmpt06 works as expected with show_diff = TRUE ── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'tlg' in selecting a method for function 'report_null': 'arg' must be of length 1 Backtrace: ▆ 1. ├─... %>% rmpt01_post() at test-rmpt06.R:13:3 2. ├─chevron::rmpt01_post(.) 3. │ └─chevron::std_postprocessing(tlg) 4. │ └─chevron::report_null(tlg, ...) 5. ├─chevron::rmpt06_main(., show_diff = TRUE) 6. │ └─rtables::build_table(lyt$adsl, adam_db$adsl) 7. │ └─rtables::update_ref_indexing(tab) 8. │ ├─formatters::make_row_df(tt) 9. │ └─rtables::make_row_df(tt) 10. │ └─rtables (local) .local(...) 11. │ ├─formatters::make_row_df(...) 12. │ └─rtables::make_row_df(...) 13. │ └─rtables (local) .local(...) 14. │ ├─formatters::make_row_df(...) 15. │ └─rtables::make_row_df(...) 16. │ └─rtables (local) .local(...) 17. │ ├─formatters::pagdfrow(...) 18. │ │ └─base::data.frame(...) 19. │ ├─formatters::nlines(...) 20. │ └─rtables::nlines(...) 21. │ ├─base::as.vector(get_formatted_cells(x)) 22. │ ├─rtables::get_formatted_cells(x) 23. │ └─rtables::get_formatted_cells(x) 24. │ ├─base::matrix(...) 25. │ ├─base::unlist(...) 26. │ └─base::Map(...) 27. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. │ └─rtables::format_rcell(...) 30. │ └─formatters::format_value(...) 31. │ └─base::match.arg(round_type) 32. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 33. └─base::.handleSimpleError(...) 34. └─base (local) h(simpleError(msg, call)) ── Error ('test-rmpt06.R:30:3'): rmpt06 can handle all NA values ─────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(rmpt06, proc_data)) at test-rmpt06.R:30:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(rmpt06, proc_data) 10. ├─chevron::run(rmpt06, proc_data) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db) 14. └─rtables::build_table(lyt$adsl, adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-rspt01.R:4:3'): rspt01 works as expected ─────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:4:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─chevron::rspt01_main(pre_data, dataset = "adrs", methods = list(diff_pval_method = "fisher")) 10. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 11. └─rtables::update_ref_indexing(tab) 12. ├─formatters::make_row_df(tt) 13. └─rtables::make_row_df(tt) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::make_row_df(...) 22. └─rtables::make_row_df(...) 23. └─rtables (local) .local(...) 24. ├─formatters::pagdfrow(...) 25. │ └─base::data.frame(...) 26. ├─formatters::nlines(...) 27. └─rtables::nlines(...) 28. ├─base::as.vector(get_formatted_cells(x)) 29. ├─rtables::get_formatted_cells(x) 30. └─rtables::get_formatted_cells(x) 31. ├─base::matrix(...) 32. ├─base::unlist(...) 33. └─base::Map(...) 34. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 35. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 36. └─rtables::format_rcell(...) 37. └─formatters::format_value(...) 38. └─base::match.arg(round_type) ── Error ('test-rspt01.R:11:3'): rspt01 works as expected for stratified and unstratified analysis ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:11:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-rspt01.R:32:3'): rspt01 works as expected for unstratified analysis only ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:32:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-rspt01.R:51:3'): rspt01 works as expected for stratified analysis only ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:51:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-rspt01.R:72:3'): rspt01 works if change reference group ──────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:72:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-rspt01.R:93:3'): rspt01 works if change statistic methods ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:93:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-rspt01.R:123:3'): rspt01 works if change confidence interval ─── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-rspt01.R:123:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::pagdfrow(...) 29. │ └─base::data.frame(...) 30. ├─formatters::nlines(...) 31. └─rtables::nlines(...) 32. ├─base::as.vector(get_formatted_cells(x)) 33. ├─rtables::get_formatted_cells(x) 34. └─rtables::get_formatted_cells(x) 35. ├─base::matrix(...) 36. ├─base::unlist(...) 37. └─base::Map(...) 38. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 39. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 40. └─rtables::format_rcell(...) 41. └─formatters::format_value(...) 42. └─base::match.arg(round_type) ── Error ('test-ttet01.R:4:3'): ttet01 works as expected ─────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-ttet01.R:4:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─chevron::ttet01_main(...) 10. └─rtables::build_table(lyt, anl) 11. └─rtables::update_ref_indexing(tab) 12. ├─formatters::make_row_df(tt) 13. └─rtables::make_row_df(tt) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-ttet01.R:28:3'): ttet01 works as expected for stratified and unstratified analysis ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-ttet01.R:28:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, anl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-ttet01.R:50:3'): ttet01 works as expected for stratified analysis only ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-ttet01.R:50:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, anl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-ttet01.R:73:3'): ttet01 works if change reference group ──────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-ttet01.R:73:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(...) 10. ├─chevron::run(...) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(...) 14. └─rtables::build_table(lyt, anl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::pagdfrow(...) 26. │ └─base::data.frame(...) 27. ├─formatters::nlines(...) 28. └─rtables::nlines(...) 29. ├─base::as.vector(get_formatted_cells(x)) 30. ├─rtables::get_formatted_cells(x) 31. └─rtables::get_formatted_cells(x) 32. ├─base::matrix(...) 33. ├─base::unlist(...) 34. └─base::Map(...) 35. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 36. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 37. └─rtables::format_rcell(...) 38. └─formatters::format_value(...) 39. └─base::match.arg(round_type) ── Error ('test-utils.R:76:1'): (code run outside of `test_that()`) ──────────── Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'toString': 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_snapshot(res1) at test-utils.R:76:1 2. │ └─testthat:::expect_snapshot_(...) 3. │ ├─testthat:::with_is_snapshotting(...) 4. │ └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay) 5. │ └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler) 6. │ ├─base::withRestarts(...) 7. │ │ └─base (local) withRestartList(expr, restarts) 8. │ │ ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]]) 9. │ │ │ └─base (local) doWithOneRestart(return(expr), restart) 10. │ │ └─base (local) withRestartList(expr, restarts[-nr]) 11. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 12. │ │ └─base (local) doWithOneRestart(return(expr), restart) 13. │ ├─evaluate:::with_handlers(...) 14. │ │ ├─base::eval(call) 15. │ │ │ └─base::eval(call) 16. │ │ └─base::withCallingHandlers(...) 17. │ └─watcher$print_value(ev$value, ev$visible, envir) 18. │ ├─base::withVisible(handle_value(handler, value, visible, envir)) 19. │ └─evaluate:::handle_value(handler, value, visible, envir) 20. │ ├─handler$value(value) 21. │ └─testthat:::testthat_print.default(value) 22. │ ├─base::print(x) 23. │ └─base::print.default(x) 24. │ ├─methods (local) ``(``) 25. │ └─rtables (local) ``(``) 26. │ ├─base::cat(toString(object)) 27. │ ├─base::toString(object) 28. │ └─rtables::toString(object) 29. │ └─rtables (local) .local(x, ...) 30. │ ├─base::toString(...) 31. │ ├─formatters::matrix_form(...) 32. │ └─rtables::matrix_form(...) 33. │ └─rtables:::.tbl_header_mat(obj) 34. │ ├─base::matrix(...) 35. │ └─base::rapply(...) 36. │ └─rtables (local) ``(X, ...) 37. │ ├─rtables::get_formatted_cells(x) 38. │ └─rtables::get_formatted_cells(x) 39. │ ├─base::matrix(...) 40. │ ├─base::unlist(...) 41. │ └─base::Map(...) 42. │ └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 43. │ └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 44. │ └─rtables::format_rcell(...) 45. │ └─formatters::format_value(...) 46. │ └─base::match.arg(round_type) 47. │ └─base::stop(gettextf("'%s' must be of length 1", "arg"), domain = NA) 48. └─base::.handleSimpleError(...) 49. └─base (local) h(simpleError(msg, call)) ── Error ('test-vst01.R:9:3'): vst01 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::vst01_main(pre_data) at test-vst01.R:9:3 2. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::pagdfrow(...) 23. │ └─base::data.frame(...) 24. ├─formatters::nlines(...) 25. └─rtables::nlines(...) 26. ├─base::as.vector(get_formatted_cells(x)) 27. ├─rtables::get_formatted_cells(x) 28. └─rtables::get_formatted_cells(x) 29. ├─base::matrix(...) 30. ├─base::unlist(...) 31. └─base::Map(...) 32. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 33. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 34. └─rtables::format_rcell(...) 35. └─formatters::format_value(...) 36. └─base::match.arg(round_type) ── Error ('test-vst01.R:22:3'): run vst01 works as expected ──────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─testthat::expect_silent(run(vst01, proc_data, precision = list(default = 0))) at test-vst01.R:22:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─chevron::run(vst01, proc_data, precision = list(default = 0)) 10. ├─chevron::run(vst01, proc_data, precision = list(default = 0)) 11. │ └─chevron:::do_call(object@main, c(proc_data, user_args)) 12. │ └─base::do.call(what, new_args, envir = args_env) 13. └─chevron (local) ``(adam_db = adam_db, precision = precision) 14. └─rtables::build_table(lyt, df = adam_db[[dataset]], alt_counts_df = adam_db$adsl) 15. └─rtables::update_ref_indexing(tab) 16. ├─formatters::make_row_df(tt) 17. └─rtables::make_row_df(tt) 18. └─rtables (local) .local(...) 19. ├─formatters::make_row_df(...) 20. └─rtables::make_row_df(...) 21. └─rtables (local) .local(...) 22. ├─formatters::make_row_df(...) 23. └─rtables::make_row_df(...) 24. └─rtables (local) .local(...) 25. ├─formatters::make_row_df(...) 26. └─rtables::make_row_df(...) 27. └─rtables (local) .local(...) 28. ├─formatters::make_row_df(...) 29. └─rtables::make_row_df(...) 30. └─rtables (local) .local(...) 31. ├─formatters::make_row_df(...) 32. └─rtables::make_row_df(...) 33. └─rtables (local) .local(...) 34. ├─formatters::pagdfrow(...) 35. │ └─base::data.frame(...) 36. ├─formatters::nlines(...) 37. └─rtables::nlines(...) 38. ├─base::as.vector(get_formatted_cells(x)) 39. ├─rtables::get_formatted_cells(x) 40. └─rtables::get_formatted_cells(x) 41. ├─base::matrix(...) 42. ├─base::unlist(...) 43. └─base::Map(...) 44. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 45. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 46. └─rtables::format_rcell(...) 47. └─formatters::format_value(...) 48. └─base::match.arg(round_type) ── Error ('test-vst02.R:5:3'): vst02 functions with default argument value return expected result with test data ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::vst02_1_main(pre_data) at test-vst02.R:5:3 2. └─rtables::build_table(lyt, adam_db$advs, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ── Error ('test-vst02.R:13:3'): vst02 functions return expected result with test data when excluding subject with baseline abnormality ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─chevron::vst02_2_main(pre_data) at test-vst02.R:13:3 2. └─rtables::build_table(lyt, adam_db$advs, alt_counts_df = adam_db$adsl) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) [ FAIL 182 | WARN 0 | SKIP 26 | PASS 208 ] Deleting unused snapshots: 'mng01/mng01-with-custom-theme.svg', 'mng01/mng01-with-default-value.new.svg', 'mng01/mng01-with-default-value.svg', 'mng01/run-mng01-with-combination-of-x-variables.svg', 'mng01/run-mng01-with-custom-color-set.svg', 'mng01/run-mng01-with-custom-line-type-set.svg', 'mng01/run-mng01-with-custom-unnamed-color-set.svg', 'mng01/run-mng01-with-custom-unnamed-line-type-set.svg', 'mng01/run-mng01-with-jitter.svg', and 'mng01/run-mng01-with-numeric-x-variables.svg' Error: ! Test failures. Execution halted Package: rtables.officer Check: examples New result: ERROR Running examples in ‘rtables.officer-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: export_as_docx > ### Title: Export to a Word document > ### Aliases: export_as_docx section_properties_default margins_potrait > ### margins_landscape > > ### ** Examples > > lyt <- basic_table() %>% + split_cols_by("ARM") %>% + analyze(c("AGE", "BMRKR2", "COUNTRY")) > > tbl <- build_table(lyt, ex_adsl) Error in match.arg(round_type) : 'arg' must be of length 1 Calls: build_table ... -> format_rcell -> format_value -> match.arg Execution halted Package: rtables.officer Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘dev_guide_ph.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘dev_guide_ph.Rmd’ --- re-building ‘export_rlistings.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘export_rlistings.Rmd’ --- re-building ‘rtables.officer.Rmd’ using rmarkdown Quitting from rtables.officer.Rmd:112-115 [unnamed-chunk-7] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' must be of length 1 --- Backtrace: ▆ 1. └─rtables::build_table(lyt, adlb_f) 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'rtables.officer.Rmd' failed with diagnostics: 'arg' must be of length 1 --- failed re-building ‘rtables.officer.Rmd’ SUMMARY: processing the following file failed: ‘rtables.officer.Rmd’ Error: Vignette re-building failed. Execution halted Package: rtables.officer Check: tests New result: ERROR Running ‘testthat.R’ [7s/7s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(rtables.officer) Loading required package: formatters Attaching package: 'formatters' The following object is masked from 'package:base': %||% Loading required package: magrittr Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Loading required package: rlistings Loading required package: tibble Loading required package: rtables Attaching package: 'rtables' The following object is masked from 'package:utils': str > test_check("rtables.officer", reporter = "check") Saving _problems/test-as_flextable-20.R Saving _problems/test-as_flextable-84.R Saving _problems/test-as_flextable-100.R Saving _problems/test-as_flextable-119.R Saving _problems/test-as_flextable-139.R Saving _problems/test-export_as_docx-3.R Saving _problems/test-export_as_docx-44.R Saving _problems/test-pagination-38.R Saving _problems/test-pagination-91.R Saving _problems/test-pagination-121.R Saving _problems/test-pagination-153.R [ FAIL 11 | WARN 0 | SKIP 0 | PASS 37 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-as_flextable.R:20:3'): Can create flextable object that works with different styles ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, ex_adsl) at test-as_flextable.R:20:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::pagdfrow(...) 16. │ └─base::data.frame(...) 17. ├─formatters::nlines(...) 18. └─rtables::nlines(...) 19. ├─base::as.vector(get_formatted_cells(x)) 20. ├─rtables::get_formatted_cells(x) 21. └─rtables::get_formatted_cells(x) 22. ├─base::matrix(...) 23. ├─base::unlist(...) 24. └─base::Map(...) 25. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 26. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 27. └─rtables::format_rcell(...) 28. └─formatters::format_value(...) 29. └─base::match.arg(round_type) ── Error ('test-as_flextable.R:84:3'): tt_to_flextable does not create different cells when colcounts (or multiple) on different lines ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, ex_adsl) at test-as_flextable.R:84:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-as_flextable.R:100:3'): check titles bold and html theme ─────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, ex_adsl) at test-as_flextable.R:100:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-as_flextable.R:119:3'): check pagination ─────────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, ex_adsl) at test-as_flextable.R:119:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-as_flextable.R:139:3'): check colwidths in flextable object ──── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, ex_adsl) at test-as_flextable.R:139:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-export_as_docx.R:3:3'): export_as_docx works thanks to tt_to_flextable ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, rawdat) at test-export_as_docx.R:3:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::pagdfrow(...) 19. │ └─base::data.frame(...) 20. ├─formatters::nlines(...) 21. └─rtables::nlines(...) 22. ├─base::as.vector(get_formatted_cells(x)) 23. ├─rtables::get_formatted_cells(x) 24. └─rtables::get_formatted_cells(x) 25. ├─base::matrix(...) 26. ├─base::unlist(...) 27. └─base::Map(...) 28. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 29. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 30. └─rtables::format_rcell(...) 31. └─formatters::format_value(...) 32. └─base::match.arg(round_type) ── Error ('test-export_as_docx.R:44:3'): export_as_docx produces a warning if manual column widths are used ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt, iris) at test-export_as_docx.R:44:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::pagdfrow(...) 16. │ └─base::data.frame(...) 17. ├─formatters::nlines(...) 18. └─rtables::nlines(...) 19. ├─base::as.vector(get_formatted_cells(x)) 20. ├─rtables::get_formatted_cells(x) 21. └─rtables::get_formatted_cells(x) 22. ├─base::matrix(...) 23. ├─base::unlist(...) 24. └─base::Map(...) 25. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 26. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 27. └─rtables::format_rcell(...) 28. └─formatters::format_value(...) 29. └─base::match.arg(round_type) ── Error ('test-pagination.R:38:3'): export_as_docx handles list generated by tt_to_flextable(paginate=TRUE) ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt_paged, test_data_rt) at test-pagination.R:38:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::pagdfrow(...) 16. │ └─base::data.frame(...) 17. ├─formatters::nlines(...) 18. └─rtables::nlines(...) 19. ├─base::as.vector(get_formatted_cells(x)) 20. ├─rtables::get_formatted_cells(x) 21. └─rtables::get_formatted_cells(x) 22. ├─base::matrix(...) 23. ├─base::unlist(...) 24. └─base::Map(...) 25. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 26. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 27. └─rtables::format_rcell(...) 28. └─formatters::format_value(...) 29. └─base::match.arg(round_type) ── Error ('test-pagination.R:91:3'): export_as_docx works with explicit list of rlistings/rtables objects ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt_rt, test_data_rt) at test-pagination.R:91:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::pagdfrow(...) 10. │ └─base::data.frame(...) 11. ├─formatters::nlines(...) 12. └─rtables::nlines(...) 13. ├─base::as.vector(get_formatted_cells(x)) 14. ├─rtables::get_formatted_cells(x) 15. └─rtables::get_formatted_cells(x) 16. ├─base::matrix(...) 17. ├─base::unlist(...) 18. └─base::Map(...) 19. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 20. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 21. └─rtables::format_rcell(...) 22. └─formatters::format_value(...) 23. └─base::match.arg(round_type) ── Error ('test-pagination.R:121:3'): export_as_docx works with pagination via lpp/cpp arguments ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt_long, test_data_rt) at test-pagination.R:121:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::pagdfrow(...) 16. │ └─base::data.frame(...) 17. ├─formatters::nlines(...) 18. └─rtables::nlines(...) 19. ├─base::as.vector(get_formatted_cells(x)) 20. ├─rtables::get_formatted_cells(x) 21. └─rtables::get_formatted_cells(x) 22. ├─base::matrix(...) 23. ├─base::unlist(...) 24. └─base::Map(...) 25. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 26. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 27. └─rtables::format_rcell(...) 28. └─formatters::format_value(...) 29. └─base::match.arg(round_type) ── Error ('test-pagination.R:153:3'): export_as_docx works with column widths and autofit settings ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─rtables::build_table(lyt_rt, test_data_rt) at test-pagination.R:153:3 2. └─rtables::update_ref_indexing(tab) 3. ├─formatters::make_row_df(tt) 4. └─rtables::make_row_df(tt) 5. └─rtables (local) .local(...) 6. ├─formatters::make_row_df(...) 7. └─rtables::make_row_df(...) 8. └─rtables (local) .local(...) 9. ├─formatters::pagdfrow(...) 10. │ └─base::data.frame(...) 11. ├─formatters::nlines(...) 12. └─rtables::nlines(...) 13. ├─base::as.vector(get_formatted_cells(x)) 14. ├─rtables::get_formatted_cells(x) 15. └─rtables::get_formatted_cells(x) 16. ├─base::matrix(...) 17. ├─base::unlist(...) 18. └─base::Map(...) 19. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 20. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 21. └─rtables::format_rcell(...) 22. └─formatters::format_value(...) 23. └─base::match.arg(round_type) [ FAIL 11 | WARN 0 | SKIP 0 | PASS 37 ] Error: ! Test failures. Execution halted Package: teal.modules.clinical Check: re-building of vignette outputs New result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘decorate-module-output.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘decorate-module-output.Rmd’ --- re-building ‘generate_tmc_test_data.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘generate_tmc_test_data.Rmd’ --- re-building ‘quickstart_substitute.Rmd’ using rmarkdown Quitting from quickstart_substitute.Rmd:304-306 [unnamed-chunk-14] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' must be of length 1 --- Backtrace: ▆ 1. ├─... %>% build_table(df = adlb_f) 2. └─rtables::build_table(., df = adlb_f) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::pagdfrow(...) 17. │ └─base::data.frame(...) 18. ├─formatters::nlines(...) 19. └─rtables::nlines(...) 20. ├─base::as.vector(get_formatted_cells(x)) 21. ├─rtables::get_formatted_cells(x) 22. └─rtables::get_formatted_cells(x) 23. ├─base::matrix(...) 24. ├─base::unlist(...) 25. └─base::Map(...) 26. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 27. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 28. └─rtables::format_rcell(...) 29. └─formatters::format_value(...) 30. └─base::match.arg(round_type) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'quickstart_substitute.Rmd' failed with diagnostics: 'arg' must be of length 1 --- failed re-building ‘quickstart_substitute.Rmd’ --- re-building ‘teal-modules-clinical.Rmd’ using rmarkdown --- finished re-building ‘teal-modules-clinical.Rmd’ SUMMARY: processing the following file failed: ‘quickstart_substitute.Rmd’ Error: Vignette re-building failed. Execution halted Package: teal.reporter Check: examples New result: ERROR Running examples in ‘teal.reporter-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: Reporter > ### Title: 'Reporter': An 'R6' class for managing reports > ### Aliases: Reporter > > ### ** Examples > > ## Don't show: > if (require("ggplot2")) withAutoprint({ # examplesIf + ## End(Don't show) + library(ggplot2) + + card1 <- teal_card("## Header 2 text", "A paragraph of default text") + card1 <- c(card1, ggplot(iris, aes(x = Petal.Length)) + geom_histogram()) + metadata(card1, "title") <- "Card1" + + card2 <- teal_card("Document introduction") + metadata(card2, "title") <- "Card2" + + reporter <- Reporter$new() + reporter$append_cards(list(card1, card2)) + ## Don't show: + }) # examplesIf Loading required package: ggplot2 > library(ggplot2) > card1 <- teal_card("## Header 2 text", "A paragraph of default text") > card1 <- c(card1, ggplot(iris, aes(x = Petal.Length)) + geom_histogram()) `stat_bin()` using `bins = 30`. Pick better value `binwidth`. > metadata(card1, "title") <- "Card1" > card2 <- teal_card("Document introduction") > metadata(card2, "title") <- "Card2" > reporter <- Reporter$new() > reporter$append_cards(list(card1, card2)) > ## End(Don't show) > ## Don't show: > if (require("ggplot2") && require("rtables")) withAutoprint({ # examplesIf + ## End(Don't show) + library(rtables) + # With the card1 from above + lyt <- analyze(split_rows_by(basic_table(), "Day"), "Ozone", afun = mean) + table_res2 <- build_table(lyt, airquality) + card2 <- teal_card( + "## Header 2 text", + "A paragraph of default text", + table_res2 + ) + metadata(card2, "title") <- "Card2" + + reporter <- Reporter$new() + reporter$append_cards(list(card1, card2)) + + names(reporter$get_cards()) + reporter$reorder_cards(c("Card2", "Card1")) + names(reporter$get_cards()) + ## Don't show: + }) # examplesIf Loading required package: rtables Loading required package: formatters Attaching package: ‘formatters’ The following object is masked from ‘package:base’: %||% Loading required package: magrittr Attaching package: ‘rtables’ The following object is masked from ‘package:utils’: str > library(rtables) > lyt <- analyze(split_rows_by(basic_table(), "Day"), "Ozone", afun = mean) > table_res2 <- build_table(lyt, airquality) Split var [Day] was not character or factor. Converting to factor Error in match.arg(round_type) : 'arg' must be of length 1 Calls: withAutoprint ... -> format_rcell -> format_value -> match.arg Execution halted Package: teal.reporter Check: tests New result: ERROR Running ‘testthat.R’ [33s/33s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > pkg_name <- "teal.reporter" > library(pkg_name, character.only = TRUE) > testthat::test_check(pkg_name) Attaching package: 'testthat' The following object is masked from 'package:teal.reporter': Reporter Loading required package: shiny Saving _problems/test-Reporter-14.R Saving _problems/test-Reporter-21.R Saving _problems/test-Reporter-77.R Saving _problems/test-Reporter-82.R Saving _problems/test-Reporter-97.R Saving _problems/test-Reporter-162.R Saving _problems/test-Reporter-169.R Saving _problems/test-Reporter-177.R Saving _problems/test-Reporter-209.R Saving _problems/test-Reporter-216.R Saving _problems/test-Reporter-225.R Saving _problems/test-Reporter-238.R Saving _problems/test-Reporter-253.R Saving _problems/test-Reporter-266.R Saving _problems/test-Reporter-277.R Saving _problems/test-Reporter-284.R Saving _problems/test-Reporter-295.R Saving _problems/test-Reporter-309.R Saving _problems/test-Reporter-316.R Saving _problems/test-Reporter-322.R Saving _problems/test-Reporter-329.R Saving _problems/test-Reporter-386.R Saving _problems/test-SimpleReporter-22.R Error in (function (card) : ARTIFICIAL ERROR Error in (function (card, comment) : ARTIFICIAL ERROR Error in (function (card) : ARTIFICIAL ERROR Saving _problems/test-utils-3.R Saving _problems/test-utils-10.R Saving _problems/test-utils-17.R [ FAIL 27 | WARN 1 | SKIP 6 | PASS 348 ] ══ Skipped tests (6) ═══════════════════════════════════════════════════════════ • testing depth 3 is below current testing specification 5 (4): 'test-PreviewerReportModule-shinytest2.R:3:5', 'test-PreviewerReportModule-shinytest2.R:9:5', 'test-PreviewerReportModule-shinytest2.R:16:5', 'test-PreviewerReportModule-shinytest2.R:34:5' • too complicated as table contains random elements - possible to test with webshot (2): 'test-toHTML.R:77:5', 'test-toHTML.R:82:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-Reporter.R:14:3'): set_id sets the reporter id and returns reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::test_reporter() at test-Reporter.R:14:3 2. ├─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:21:3'): Reporter with ReportCard ──────────────────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::test_card2.ReportCard() at test-Reporter.R:21:3 2. └─teal.reporter:::test_card2(card) at ./helper-Reporter.R:42:3 3. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 4. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 5. └─rtables::update_ref_indexing(tab) 6. ├─formatters::make_row_df(tt) 7. └─rtables::make_row_df(tt) 8. └─rtables (local) .local(...) 9. ├─formatters::make_row_df(...) 10. └─rtables::make_row_df(...) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::pagdfrow(...) 19. │ └─base::data.frame(...) 20. ├─formatters::nlines(...) 21. └─rtables::nlines(...) 22. ├─base::as.vector(get_formatted_cells(x)) 23. ├─rtables::get_formatted_cells(x) 24. └─rtables::get_formatted_cells(x) 25. ├─base::matrix(...) 26. ├─base::unlist(...) 27. └─base::Map(...) 28. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 29. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 30. └─rtables::format_rcell(...) 31. └─formatters::format_value(...) 32. └─base::match.arg(round_type) ── Error ('test-Reporter.R:77:3'): get_cards returns the same cards which was added to reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(card1 <- test_card1(), card2 <- test_card2()) at test-Reporter.R:77:3 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:82:3'): get_blocks returns the same blocks which was added to reporter, sep = NULL ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(...) at test-Reporter.R:82:3 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2("Another title") 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:97:3'): get_blocks by default adds 'newpage' between cards ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::test_card2("Another title") at test-Reporter.R:97:3 2. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 3. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 4. └─rtables::update_ref_indexing(tab) 5. ├─formatters::make_row_df(tt) 6. └─rtables::make_row_df(tt) 7. └─rtables (local) .local(...) 8. ├─formatters::make_row_df(...) 9. └─rtables::make_row_df(...) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-Reporter.R:162:3'): from_reporter returns identical/equal object from the same reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(card1 <- test_card1(), card2 <- test_card2()) at test-Reporter.R:162:3 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:169:3'): from_reporter does not return identical/equal object form other reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(card1 <- test_card1(), card2 <- test_card2()) at test-Reporter.R:169:3 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:177:3'): from_reporter persists the cards structure ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(card1 <- test_card1(), card2 <- test_card2()) at test-Reporter.R:177:3 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:209:5'): from_reporter / from_reporter returns identical/equal object from the same reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::test_reporter() at test-Reporter.R:209:5 2. ├─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:216:5'): from_reporter / from_reporter does not return identical/equal object form other reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:216:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:225:5'): from_reporter / from_reporter persists the cards structure, but not the name ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:225:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:238:5'): to_list / require the existing directory path ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:238:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:253:5'): to_list / to_list and from_list could be used to save and retrieve a Reporter card ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:253:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:266:5'): to_list / to_list and from_list could be used to save and retrieve a Reporter blocks ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:266:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:277:5'): from_reporter / returns same object from the same reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(card1 <- test_card1(), card2 <- test_card2()) at test-Reporter.R:277:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:284:5'): from_reporter / returns different object if id has already been set ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:284:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:295:5'): from_reporter / from_reporter persists the cards structure ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:295:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:309:5'): to_jsondir / to_jsondir require the existing directory path ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:309:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:316:5'): to_jsondir / to_jsondir returns the same dir it was provided to it ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:316:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:322:5'): to_jsondir / from_jsondir returns identical/equal object ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:322:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:329:5'): to_jsondir / to_jsondir and from_jsondir could be used to save and retrive a Reporter ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter:::test_reporter(test_card1(), test_card2()) at test-Reporter.R:329:5 2. │ └─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 3. └─teal.reporter:::test_card2() 4. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 5. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 6. └─rtables::update_ref_indexing(tab) 7. ├─formatters::make_row_df(tt) 8. └─rtables::make_row_df(tt) 9. └─rtables (local) .local(...) 10. ├─formatters::make_row_df(...) 11. └─rtables::make_row_df(...) 12. └─rtables (local) .local(...) 13. ├─formatters::make_row_df(...) 14. └─rtables::make_row_df(...) 15. └─rtables (local) .local(...) 16. ├─formatters::make_row_df(...) 17. └─rtables::make_row_df(...) 18. └─rtables (local) .local(...) 19. ├─formatters::pagdfrow(...) 20. │ └─base::data.frame(...) 21. ├─formatters::nlines(...) 22. └─rtables::nlines(...) 23. ├─base::as.vector(get_formatted_cells(x)) 24. ├─rtables::get_formatted_cells(x) 25. └─rtables::get_formatted_cells(x) 26. ├─base::matrix(...) 27. ├─base::unlist(...) 28. └─base::Map(...) 29. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 30. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 31. └─rtables::format_rcell(...) 32. └─formatters::format_value(...) 33. └─base::match.arg(round_type) ── Error ('test-Reporter.R:386:3'): from_reporter persists the cards structure ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::test_card2("Another title") at test-Reporter.R:386:3 2. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 3. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 4. └─rtables::update_ref_indexing(tab) 5. ├─formatters::make_row_df(tt) 6. └─rtables::make_row_df(tt) 7. └─rtables (local) .local(...) 8. ├─formatters::make_row_df(...) 9. └─rtables::make_row_df(...) 10. └─rtables (local) .local(...) 11. ├─formatters::make_row_df(...) 12. └─rtables::make_row_df(...) 13. └─rtables (local) .local(...) 14. ├─formatters::make_row_df(...) 15. └─rtables::make_row_df(...) 16. └─rtables (local) .local(...) 17. ├─formatters::pagdfrow(...) 18. │ └─base::data.frame(...) 19. ├─formatters::nlines(...) 20. └─rtables::nlines(...) 21. ├─base::as.vector(get_formatted_cells(x)) 22. ├─rtables::get_formatted_cells(x) 23. └─rtables::get_formatted_cells(x) 24. ├─base::matrix(...) 25. ├─base::unlist(...) 26. └─base::Map(...) 27. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 28. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 29. └─rtables::format_rcell(...) 30. └─formatters::format_value(...) 31. └─base::match.arg(round_type) ── Error ('test-SimpleReporter.R:2:3'): simple_reporter_srv - render and downlaod a document ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─shiny::testServer(...) at test-SimpleReporter.R:2:3 2. │ └─"id" %in% names(args) 3. └─teal.reporter:::test_reporter() 4. ├─base::append(list(card1, card2), list(...)) at ./helper-Reporter.R:62:3 5. └─teal.reporter:::test_card2() 6. └─teal.reporter (local) fun(card) at ./helper-Reporter.R:25:5 7. └─rtables::build_table(lyt, within(airquality, Day <- factor(Day))) at ./helper-Reporter.R:17:5 8. └─rtables::update_ref_indexing(tab) 9. ├─formatters::make_row_df(tt) 10. └─rtables::make_row_df(tt) 11. └─rtables (local) .local(...) 12. ├─formatters::make_row_df(...) 13. └─rtables::make_row_df(...) 14. └─rtables (local) .local(...) 15. ├─formatters::make_row_df(...) 16. └─rtables::make_row_df(...) 17. └─rtables (local) .local(...) 18. ├─formatters::make_row_df(...) 19. └─rtables::make_row_df(...) 20. └─rtables (local) .local(...) 21. ├─formatters::pagdfrow(...) 22. │ └─base::data.frame(...) 23. ├─formatters::nlines(...) 24. └─rtables::nlines(...) 25. ├─base::as.vector(get_formatted_cells(x)) 26. ├─rtables::get_formatted_cells(x) 27. └─rtables::get_formatted_cells(x) 28. ├─base::matrix(...) 29. ├─base::unlist(...) 30. └─base::Map(...) 31. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 32. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 33. └─rtables::format_rcell(...) 34. └─formatters::format_value(...) 35. └─base::match.arg(round_type) ── Error ('test-to_rmd.R:78:5'): to_rmd generating blocks with rds auxiliary files / data frames are converted to code chunks with readRDS ── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─teal.reporter (local) expect_rds_generation(to_rmd(data.frame(x = 1:5, y = letters[1:5]))) at test-to_rmd.R:78:5 2. │ └─testthat::expect_match(result, "^```[{][rR].*[}].*readRDS[(].*[)].*```[ \n]*$") at test-to_rmd.R:59:5 3. │ └─testthat::quasi_label(enquo(object), label) 4. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 5. ├─teal.reporter::to_rmd(data.frame(x = 1:5, y = letters[1:5])) 6. └─teal.reporter:::to_rmd.default(data.frame(x = 1:5, y = letters[1:5])) 7. ├─teal.reporter:::.to_rmd(block, ...) 8. └─teal.reporter:::.to_rmd.data.frame(block, ...) 9. └─teal.reporter:::to_flextable(block) 10. └─rtables.officer::tt_to_flextable(rtables::df_to_tt(content)) 11. ├─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 12. └─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 13. └─rtables:::.tbl_header_mat(obj) 14. ├─base::matrix(...) 15. └─base::rapply(...) 16. └─rtables (local) ``(X, ...) 17. ├─rtables::get_formatted_cells(x) 18. └─rtables::get_formatted_cells(x) 19. ├─base::matrix(...) 20. ├─base::unlist(...) 21. └─base::Map(...) 22. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 23. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 24. └─rtables::format_rcell(...) 25. └─formatters::format_value(...) 26. └─base::match.arg(round_type) ── Error ('test-utils.R:3:3'): to_flextable: supported class `data.frame` ────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::to_flextable(data_frame) at test-utils.R:3:3 2. └─rtables.officer::tt_to_flextable(rtables::df_to_tt(content)) 3. ├─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 4. └─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 5. └─rtables:::.tbl_header_mat(obj) 6. ├─base::matrix(...) 7. └─base::rapply(...) 8. └─rtables (local) ``(X, ...) 9. ├─rtables::get_formatted_cells(x) 10. └─rtables::get_formatted_cells(x) 11. ├─base::matrix(...) 12. ├─base::unlist(...) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 16. └─rtables::format_rcell(...) 17. └─formatters::format_value(...) 18. └─base::match.arg(round_type) ── Error ('test-utils.R:8:3'): to_flextable: supported class `rtables` ───────── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. ├─... %>% rtables::build_table(formatters::DM) at test-utils.R:8:3 2. └─rtables::build_table(., formatters::DM) 3. └─rtables::update_ref_indexing(tab) 4. ├─formatters::make_row_df(tt) 5. └─rtables::make_row_df(tt) 6. └─rtables (local) .local(...) 7. ├─formatters::make_row_df(...) 8. └─rtables::make_row_df(...) 9. └─rtables (local) .local(...) 10. ├─formatters::pagdfrow(...) 11. │ └─base::data.frame(...) 12. ├─formatters::nlines(...) 13. └─rtables::nlines(...) 14. ├─base::as.vector(get_formatted_cells(x)) 15. ├─rtables::get_formatted_cells(x) 16. └─rtables::get_formatted_cells(x) 17. ├─base::matrix(...) 18. ├─base::unlist(...) 19. └─base::Map(...) 20. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 21. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 22. └─rtables::format_rcell(...) 23. └─formatters::format_value(...) 24. └─base::match.arg(round_type) ── Error ('test-utils.R:17:3'): to_flextable: supported class `listing_df` ───── Error in `match.arg(round_type)`: 'arg' must be of length 1 Backtrace: ▆ 1. └─teal.reporter:::to_flextable(lsting) at test-utils.R:17:3 2. └─rtables.officer::tt_to_flextable(...) 3. ├─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 4. └─rtables::matrix_form(tt, fontspec = fontspec, indent_rownames = FALSE) 5. └─rtables:::.tbl_header_mat(obj) 6. ├─base::matrix(...) 7. └─base::rapply(...) 8. └─rtables (local) ``(X, ...) 9. ├─rtables::get_formatted_cells(x) 10. └─rtables::get_formatted_cells(x) 11. ├─base::matrix(...) 12. ├─base::unlist(...) 13. └─base::Map(...) 14. └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE) 15. └─rtables (local) ``(val = dots[[1L]][[1L]], spn = dots[[2L]][[1L]], shelli = dots[[3L]][[1L]]) 16. └─rtables::format_rcell(...) 17. └─formatters::format_value(...) 18. └─base::match.arg(round_type) [ FAIL 27 | WARN 1 | SKIP 6 | PASS 348 ] Error: ! Test failures. Execution halted