Running ‘testthat.R’ [5m/24m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "tern"
  > library(testthat)
  > test_check(pkg_name, reporter = ParallelProgressReporter$new())
  Loading required package: tern
  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: '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
  
  Registered S3 method overwritten by 'tern':
    method   from 
    tidy.glm broom
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  ✔ | F W  S  OK | Context
  
  ⠋ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] Starting up...                          
  ✖ | 3    4   4 | abnormal [10.6s]                                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-abnormal.R:98:3'): count_abnormal works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal.R:98:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal.R:122:3'): count_abnormal works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df2) at test-abnormal.R:122:3
    2. └─rtables::build_table(., df2)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal.R:154:3'): count_abnormal works with default arguments and visit
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal.R:154:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 2    3   6 | abnormal_by_baseline [4.9s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-abnormal_by_baseline.R:89:3'): count_abnormal_by_baseline works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal_by_baseline.R:89:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_baseline.R:103:3'): count_abnormal_by_baseline works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df2) at test-abnormal_by_baseline.R:103:3
    2. └─rtables::build_table(., df2)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    2   3 | abnormal_by_marked [58.1s]                                     
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-abnormal_by_marked.R:242:3'): count_abnormal_by_marked works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adlb_f) at test-abnormal_by_marked.R:242:3
    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.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    1   2 | abnormal_by_worst_grade [4.3s]                                 
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-abnormal_by_worst_grade.R:60:3'): count_abnormal_by_worst_grade works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adlb_f) at test-abnormal_by_worst_grade.R:60:3
    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.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    7  11 | abnormal_by_worst_grade_worsen [10.0s]                         
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-abnormal_by_worst_grade_worsen.R:195:3'): count_abnormal_lab_worsen_by_baseline
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = tern_ex_adsl) at test-abnormal_by_worst_grade_worsen.R:195:3
    2. └─rtables::build_table(., df = df, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 14   19  30 | analyze_variables [25.7s]                                     
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-analyze_variables.R:292:3'): `analyze_vars` works with healthy input, default `na.rm = TRUE`.
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:292:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:307:3'): `analyze_vars` works with healthy input, and control function.
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:307:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:318:3'): `analyze_vars` works with healthy input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:318:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:327:3'): `analyze_vars` works with healthy factor input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% analyze_vars(vars = "foo") %>% ... at test-analyze_variables.R:327:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:338:3'): `analyze_vars` works with healthy factor input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:338:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:362:3'): `analyze_vars` works with factors and different denominators
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─start %>% analyze_vars("RACE", denom = "n") %>% ... at test-analyze_variables.R:362:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:382:3'): analyze_vars works in demographic table example
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-analyze_variables.R:382:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:400:3'): `analyze_vars` works with character input and gives the same result as with factor
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(result <- build_table(l, dta)) at test-analyze_variables.R:400:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─rtables::build_table(l, dta)
    8.   └─rtables::update_ref_indexing(tab)
    9.     ├─formatters::make_row_df(tt)
   10.     └─rtables::make_row_df(tt)
   11.       ├─formatters::make_row_df(...)
   12.       └─rtables::make_row_df(...)
   13.         ├─formatters::pagdfrow(...)
   14.         │ └─base::data.frame(...)
   15.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.           ├─base::unlist(...)
   18.           └─base::mapply(...)
   19.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                 ├─base::unlist(...)
   23.                 └─base::vapply(...)
   24.                   ├─formatters (local) FUN(X[[i]], ...)
   25.                   └─formatters (local) FUN(X[[i]], ...)
   26.                     └─base::vapply(...)
   27.                       └─formatters (local) FUN(X[[i]], ...)
   28.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:424:3'): `analyze_vars` does not work with sparse character input due to missing statistics
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(build_table(l, dta_factor)) at test-analyze_variables.R:424: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. └─rtables::build_table(l, dta_factor)
   10.   └─rtables::update_ref_indexing(tab)
   11.     ├─formatters::make_row_df(tt)
   12.     └─rtables::make_row_df(tt)
   13.       ├─formatters::make_row_df(...)
   14.       └─rtables::make_row_df(...)
   15.         ├─formatters::pagdfrow(...)
   16.         │ └─base::data.frame(...)
   17.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.           ├─base::unlist(...)
   20.           └─base::mapply(...)
   21.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                 ├─base::unlist(...)
   25.                 └─base::vapply(...)
   26.                   ├─formatters (local) FUN(X[[i]], ...)
   27.                   └─formatters (local) FUN(X[[i]], ...)
   28.                     └─base::vapply(...)
   29.                       └─formatters (local) FUN(X[[i]], ...)
   30.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:432:3'): `analyze_vars` works with logical input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% analyze_vars(vars = "boo") %>% ... at test-analyze_variables.R:432:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:443:3'): `analyze_vars` works with healthy logical input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:443:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:468:3'): `analyze_vars` works with empty named numeric variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:468:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:485:3'): analyze_vars 'na_str' argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:485:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:512:3'): analyze_vars works correctly with auto formats
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dt) at test-analyze_variables.R:512:3
    2. └─rtables::build_table(., dt)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 7        2 | analyze_vars_in_cols [35.3s]                                   
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-analyze_vars_in_cols.R:8:3'): analyze_vars_in_cols works correctly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = adpp) at test-analyze_vars_in_cols.R:8:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:50:3'): custom labels can be set with row_labels for analyze_colvars
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adpp) at test-analyze_vars_in_cols.R:50:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:102:3'): custom labels can be set with row_labels and summarize
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adpp) at test-analyze_vars_in_cols.R:102:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:171:3'): summarize works with nested analyze
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(build_table(lyt, df = tern_ex_adpp, alt_counts_df = tern_ex_adsl)) at test-analyze_vars_in_cols.R:171: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. └─rtables::build_table(lyt, df = tern_ex_adpp, alt_counts_df = tern_ex_adsl)
   10.   └─rtables::update_ref_indexing(tab)
   11.     ├─formatters::make_row_df(tt)
   12.     └─rtables::make_row_df(tt)
   13.       ├─formatters::make_row_df(...)
   14.       └─rtables::make_row_df(...)
   15.         ├─formatters::make_row_df(...)
   16.         └─rtables::make_row_df(...)
   17.           ├─formatters::make_row_df(...)
   18.           └─rtables::make_row_df(...)
   19.             ├─formatters::pagdfrow(...)
   20.             │ └─base::data.frame(...)
   21.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.               ├─base::unlist(...)
   24.               └─base::mapply(...)
   25.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                     ├─base::unlist(...)
   29.                     └─base::vapply(...)
   30.                       ├─formatters (local) FUN(X[[i]], ...)
   31.                       └─formatters (local) FUN(X[[i]], ...)
   32.                         └─base::vapply(...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:251:3'): analyze_vars_in_cols works well with categorical data
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-analyze_vars_in_cols.R:251:3
   2.   └─rlang::cnd_signal(state$error)
  
  Error ('test-analyze_vars_in_cols.R:316:3'): analyze_vars_in_cols works with imputation rule
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = df) at test-analyze_vars_in_cols.R:316:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::make_row_df(...)
   16.                 └─rtables::make_row_df(...)
   17.                   ├─formatters::make_row_df(...)
   18.                   └─rtables::make_row_df(...)
   19.                     ├─formatters::pagdfrow(...)
   20.                     │ └─base::data.frame(...)
   21.                     ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                     └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.                       ├─base::unlist(...)
   24.                       └─base::mapply(...)
   25.                         └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                           ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                           └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                             ├─base::unlist(...)
   29.                             └─base::vapply(...)
   30.                               ├─formatters (local) FUN(X[[i]], ...)
   31.                               └─formatters (local) FUN(X[[i]], ...)
   32.                                 └─base::vapply(...)
   33.                                   └─formatters (local) FUN(X[[i]], ...)
   34.                                     └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                                       └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:419:3'): analyze_vars_in_cols works with caching
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = df) at test-analyze_vars_in_cols.R:419:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::make_row_df(...)
   16.                 └─rtables::make_row_df(...)
   17.                   ├─formatters::make_row_df(...)
   18.                   └─rtables::make_row_df(...)
   19.                     ├─formatters::pagdfrow(...)
   20.                     │ └─base::data.frame(...)
   21.                     ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                     └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.                       ├─base::unlist(...)
   24.                       └─base::mapply(...)
   25.                         └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                           ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                           └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                             ├─base::unlist(...)
   29.                             └─base::vapply(...)
   30.                               ├─formatters (local) FUN(X[[i]], ...)
   31.                               └─formatters (local) FUN(X[[i]], ...)
   32.                                 └─base::vapply(...)
   33.                                   └─formatters (local) FUN(X[[i]], ...)
   34.                                     └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                                       └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      2   6 | bland-altman [4.9s]                                            
  
  ✔ |         16 | combination_function [1.1s]                                    
  
  ✖ | 3    6  14 | compare_variables [5.7s]                                       
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-compare_variables.R:97:3'): compare_vars works with default settings in rtables layout pipeline
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, tern_ex_adsl) at test-compare_variables.R:97:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-compare_variables.R:112:3'): compare_vars works with custom settings
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = tern_ex_adsl) at test-compare_variables.R:112:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-compare_variables.R:119:3'): compare_vars 'na_str' argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adsl) at test-compare_variables.R:119:3
    2. └─rtables::build_table(., tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      1   3 | control_logistic                                               
  
  ✔ |      1   4 | control_step                                                   
  
  ✔ |      3  11 | control_survival [1.5s]                                        
  
  ✖ | 2    4   4 | count_cumulative [2.4s]                                        
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_cumulative.R:72:3'): count_cumulative works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_cumulative.R:72:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_cumulative.R:91:3'): count_cumulative works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_cumulative.R:91:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    4   4 | count_missed_doses [1.3s]                                      
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_missed_doses.R:45:3'): count_missed_doses works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_missed_doses.R:45:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 5    3  10 | count_occurrences [7.1s]                                       
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_occurrences.R:131:3'): count_occurrences functions as expected with valid input and default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:131:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:157:3'): count_occurrences functions as expected with label row specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:157:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:166:3'): count_occurrences works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences.R:166:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:226:3'): summarize_occurrences functions as expected with valid input and default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:226:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:235:3'): summarize_occurrences works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences.R:235:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 8    6   6 | count_occurrences_by_grade [13.4s]                             
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_occurrences_by_grade.R:142:3'): count_occurrences_by_grade works with default arguments for intensity
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:142:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:166:3'): count_occurrences_by_grade label works when more than one variables are analyzed
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:166:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:189:3'): count_occurrences_by_grade works with custom arguments for grade
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:189:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:225:3'): summarize_occurrences_by_grade works with default arguments for intensity
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:225:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:272:3'): summarize_occurrences_by_grade works with custom arguments for grade
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:272:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:303:3'): count_occurrences_by_grade works with trim_levels_in_group split function
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:303:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:340:3'): summarize_ and count_occurrences_by_grade works with pagination and sorting
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-count_occurrences_by_grade.R:340:3
    2. ├─rtables::sort_at_path(...)
    3. │ └─base::NROW(tt)
    4. ├─rtables::sort_at_path(...)
    5. │ └─base::NROW(tt)
    6. ├─rtables::sort_at_path(...)
    7. │ └─base::NROW(tt)
    8. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    9.   └─rtables::update_ref_indexing(tab)
   10.     ├─formatters::make_row_df(tt)
   11.     └─rtables::make_row_df(tt)
   12.       ├─formatters::make_row_df(...)
   13.       └─rtables::make_row_df(...)
   14.         ├─formatters::make_row_df(...)
   15.         └─rtables::make_row_df(...)
   16.           ├─formatters::pagdfrow(...)
   17.           │ └─base::data.frame(...)
   18.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.             ├─base::unlist(...)
   21.             └─base::mapply(...)
   22.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                   ├─base::unlist(...)
   26.                   └─base::vapply(...)
   27.                     ├─formatters (local) FUN(X[[i]], ...)
   28.                     └─formatters (local) FUN(X[[i]], ...)
   29.                       └─base::vapply(...)
   30.                         └─formatters (local) FUN(X[[i]], ...)
   31.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:388:3'): count_occurrences_by_grade works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences_by_grade.R:388:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 2    2   2 | count_patients_events_in_cols [2.1s]                           
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_patients_events_in_cols.R:44:3'): summarize_patients_events_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_patients_events_in_cols.R:44:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_events_in_cols.R:60:3'): summarize_patients_events_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_patients_events_in_cols.R:60:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3    3   3 | count_patients_with_event [3.5s]                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_patients_with_event.R:60:3'): count_patients_with_event works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_event.R:60:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_event.R:98:3'): count_patients_with_event works as expected for different column count
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_event.R:98:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_event.R:126:3'): count_patients_with_flags works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-count_patients_with_event.R:126:3
    2. └─rtables::build_table(., tern_ex_adae, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 5    3   3 | count_patients_with_flags [6.6s]                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_patients_with_flags.R:127:3'): count_patients_with_flags works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_flags.R:127:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:175:3'): count_patients_with_flags works as expected when specifying table_names
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_flags.R:175:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:214:3'): count_patients_with_flags works with label row specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adae_local, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:214:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:240:3'): count_patients_with_flags custom variable label behaviour works with var_labels specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adae_local, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:240:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:310:3'): count_patients_with_flags works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adae, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:310:3
    2. └─rtables::build_table(., adae, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3    7   7 | count_values [3.6s]                                            
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-count_values.R:59:3'): count_values works as expected with a single value
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-count_values.R:59:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_values.R:73:3'): count_values works as expected with multiple values and variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_values.R:73:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_values.R:110:3'): count_values works as expected with multiple values and variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% count_values("x", values = TRUE) %>% ... at test-count_values.R:110:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      5  11 | coxph [2.4s]                                                   
  
  ✔ |     24  50 | coxreg [12.2s]                                                 
  
  ✔ |      2   6 | decorate_grob [14.2s]                                          
  
  ✔ |      5   5 | desctools_binom_diff [2.3s]                                    
  
  ✔ |      5  12 | df_explicit_na [1.7s]                                          
  
  ✖ | 1    7  11 | estimate_incidence_rate [2.6s]                                 
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-estimate_incidence_rate.R:94:3'): estimate_incidence_rate works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-estimate_incidence_rate.R:94:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    2   6 | estimate_multinom_rsp [2.9s]                                   
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-estimate_multinom_rsp.R:45:3'): estimate_multinomial_response returns right result
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = dta_test) at test-estimate_multinom_rsp.R:45:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3   14  14 | estimate_proportion [8.0s]                                     
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-estimate_proportion.R:267:3'): `estimate_proportion` is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-estimate_proportion.R:267:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_proportion.R:291:3'): `estimate_proportion` and strat_wilson is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-estimate_proportion.R:291:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─... %>% build_table(anl)
    4. └─rtables::build_table(., anl)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::pagdfrow(...)
   11.         │ └─base::data.frame(...)
   12.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.           ├─base::unlist(...)
   15.           └─base::mapply(...)
   16.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                 ├─base::unlist(...)
   20.                 └─base::vapply(...)
   21.                   ├─formatters (local) FUN(X[[i]], ...)
   22.                   └─formatters (local) FUN(X[[i]], ...)
   23.                     └─base::vapply(...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_proportion.R:322:5'): `estimate_proportion` and strat_wilson with equal weights and specific number of interactions works with `rtables`
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'obj' in selecting a method for function 'get_formatted_cells': argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% get_formatted_cells() at test-estimate_proportion.R:322:5
    2. ├─rtables::get_formatted_cells(.)
    3. ├─rtables::build_table(., anl)
    4. │ └─rtables::update_ref_indexing(tab)
    5. │   ├─formatters::make_row_df(tt)
    6. │   └─rtables::make_row_df(tt)
    7. │     ├─formatters::make_row_df(...)
    8. │     └─rtables::make_row_df(...)
    9. │       ├─formatters::pagdfrow(...)
   10. │       │ └─base::data.frame(...)
   11. │       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12. │       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13. │         ├─base::unlist(...)
   14. │         └─base::mapply(...)
   15. │           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16. │             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17. │             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18. │               ├─base::unlist(...)
   19. │               └─base::vapply(...)
   20. │                 ├─formatters (local) FUN(X[[i]], ...)
   21. │                 └─formatters (local) FUN(X[[i]], ...)
   22. │                   └─base::vapply(...)
   23. │                     └─formatters (local) FUN(X[[i]], ...)
   24. │                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25. │                         └─formatters::open_font_dev(fontspec)
   26. └─base::.handleSimpleError(...)
   27.   └─base (local) h(simpleError(msg, call))
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      3  13 | fit_rsp_step [7.8s]                                            
  
  ✔ |      3   9 | fit_survival_step [8.0s]                                       
  
  ✖ | 1   20  32 | formatting_functions [7.2s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-formatting_functions.R:242:3'): auto formatting works with NA values
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-formatting_functions.R:242: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. ├─... %>% build_table(dt)
   10. └─rtables::build_table(., dt)
   11.   └─rtables::update_ref_indexing(tab)
   12.     ├─formatters::make_row_df(tt)
   13.     └─rtables::make_row_df(tt)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::pagdfrow(...)
   17.         │ └─base::data.frame(...)
   18.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.           ├─base::unlist(...)
   21.           └─base::mapply(...)
   22.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                 ├─base::unlist(...)
   26.                 └─base::vapply(...)
   27.                   ├─formatters (local) FUN(X[[i]], ...)
   28.                   └─formatters (local) FUN(X[[i]], ...)
   29.                     └─base::vapply(...)
   30.                       └─formatters (local) FUN(X[[i]], ...)
   31.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 6        0 | g_forest [13.1s]                                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-g_forest.R:18:3'): g_forest default plot works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:18:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:48:3'): g_forest works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-g_forest.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. └─tern::g_forest(...)
   10.   ├─formatters::matrix_form(tbl)
   11.   └─rtables::matrix_form(tbl)
   12.     ├─formatters::make_row_df(obj)
   13.     └─rtables::make_row_df(obj)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::pagdfrow(...)
   17.         │ └─base::data.frame(...)
   18.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.           ├─base::unlist(...)
   21.           └─base::mapply(...)
   22.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                 ├─base::unlist(...)
   26.                 └─base::vapply(...)
   27.                   ├─formatters (local) FUN(X[[i]], ...)
   28.                   └─formatters (local) FUN(X[[i]], ...)
   29.                     └─base::vapply(...)
   30.                       └─formatters (local) FUN(X[[i]], ...)
   31.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:91:3'): g_forest as_list argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:91:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:103:3'): g_forest argument deprecation warnings work
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:103:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:144:3'): forest_grob works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(...) at test-g_forest.R:144:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─lifecycle::expect_deprecated(...)
    9. │ └─testthat::expect_warning(...)
   10. │   └─testthat:::expect_condition_matching(...)
   11. │     └─testthat:::quasi_capture(...)
   12. │       ├─testthat (local) .capture(...)
   13. │       │ └─base::withCallingHandlers(...)
   14. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15. ├─lifecycle::expect_deprecated(...)
   16. │ └─testthat::expect_warning(...)
   17. │   └─testthat:::expect_condition_matching(...)
   18. │     └─testthat:::quasi_capture(...)
   19. │       ├─testthat (local) .capture(...)
   20. │       │ └─base::withCallingHandlers(...)
   21. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   22. ├─lifecycle::expect_deprecated(...)
   23. │ └─testthat::expect_warning(...)
   24. │   └─testthat:::expect_condition_matching(...)
   25. │     └─testthat:::quasi_capture(...)
   26. │       ├─testthat (local) .capture(...)
   27. │       │ └─base::withCallingHandlers(...)
   28. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   29. ├─lifecycle::expect_deprecated(...)
   30. │ └─testthat::expect_warning(...)
   31. │   └─testthat:::expect_condition_matching(...)
   32. │     └─testthat:::quasi_capture(...)
   33. │       ├─testthat (local) .capture(...)
   34. │       │ └─base::withCallingHandlers(...)
   35. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   36. ├─lifecycle::expect_deprecated(...)
   37. │ └─testthat::expect_warning(...)
   38. │   └─testthat:::expect_condition_matching(...)
   39. │     └─testthat:::quasi_capture(...)
   40. │       ├─testthat (local) .capture(...)
   41. │       │ └─base::withCallingHandlers(...)
   42. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   43. ├─lifecycle::expect_deprecated(...)
   44. │ └─testthat::expect_warning(...)
   45. │   └─testthat:::expect_condition_matching(...)
   46. │     └─testthat:::quasi_capture(...)
   47. │       ├─testthat (local) .capture(...)
   48. │       │ └─base::withCallingHandlers(...)
   49. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   50. └─tern:::forest_grob(...)
   51.   ├─formatters::matrix_form(tbl)
   52.   └─rtables::matrix_form(tbl)
   53.     ├─formatters::make_row_df(obj)
   54.     └─rtables::make_row_df(obj)
   55.       ├─formatters::make_row_df(...)
   56.       └─rtables::make_row_df(...)
   57.         ├─formatters::pagdfrow(...)
   58.         │ └─base::data.frame(...)
   59.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   60.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   61.           ├─base::unlist(...)
   62.           └─base::mapply(...)
   63.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   64.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   65.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   66.                 ├─base::unlist(...)
   67.                 └─base::vapply(...)
   68.                   ├─formatters (local) FUN(X[[i]], ...)
   69.                   └─formatters (local) FUN(X[[i]], ...)
   70.                     └─base::vapply(...)
   71.                       └─formatters (local) FUN(X[[i]], ...)
   72.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   73.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:176:3'): forest_viewport works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(lifecycle::expect_deprecated(lifecycle::expect_deprecated(v <- forest_viewport(tbl)))) at test-g_forest.R:176:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─lifecycle::expect_deprecated(lifecycle::expect_deprecated(v <- forest_viewport(tbl)))
    9. │ └─testthat::expect_warning(...)
   10. │   └─testthat:::expect_condition_matching(...)
   11. │     └─testthat:::quasi_capture(...)
   12. │       ├─testthat (local) .capture(...)
   13. │       │ └─base::withCallingHandlers(...)
   14. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15. ├─lifecycle::expect_deprecated(v <- forest_viewport(tbl))
   16. │ └─testthat::expect_warning(...)
   17. │   └─testthat:::expect_condition_matching(...)
   18. │     └─testthat:::quasi_capture(...)
   19. │       ├─testthat (local) .capture(...)
   20. │       │ └─base::withCallingHandlers(...)
   21. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   22. └─tern::forest_viewport(tbl)
   23.   ├─formatters::matrix_form(tbl)
   24.   └─rtables::matrix_form(tbl)
   25.     ├─formatters::make_row_df(obj)
   26.     └─rtables::make_row_df(obj)
   27.       ├─formatters::make_row_df(...)
   28.       └─rtables::make_row_df(...)
   29.         ├─formatters::pagdfrow(...)
   30.         │ └─base::data.frame(...)
   31.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   32.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   33.           ├─base::unlist(...)
   34.           └─base::mapply(...)
   35.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   36.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   37.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   38.                 ├─base::unlist(...)
   39.                 └─base::vapply(...)
   40.                   ├─formatters (local) FUN(X[[i]], ...)
   41.                   └─formatters (local) FUN(X[[i]], ...)
   42.                     └─base::vapply(...)
   43.                       └─formatters (local) FUN(X[[i]], ...)
   44.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   45.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      9  18 | g_km [100.8s]                                                  
  
  ✔ |      3   6 | g_lineplot [24.8s]                                             
  
  ✔ |      4  10 | g_step [4.9s]                                                  
  
  ✔ |      2   2 | g_waterfall [1.1s]                                             
  
  ✔ |      5   1 | h_adsl_adlb_merge_using_worst_flag [2.7s]                      
  
  ✔ |      1   1 | h_format_row                                                   
  
  ✔ |     13  21 | h_km [9.3s]                                                    
  
  ✔ |     16  38 | h_logistic_regression [5.8s]                                   
  
  ✔ |      7   7 | h_map_for_count_abnormal [1.8s]                                
  
  ✔ |      2   2 | h_pkparam_sort                                                 
  
  ✖ | 1    4   4 | h_response_biomarkers_subgroups [2.5s]                         
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-h_response_biomarkers_subgroups.R:113:3'): h_tab_rsp_one_biomarker works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-h_response_biomarkers_subgroups.R:113: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. └─tern::h_tab_rsp_one_biomarker(...)
   10.   └─tern::h_tab_one_biomarker(...)
   11.     └─rtables::build_table(lyt, df = df)
   12.       └─rtables::update_ref_indexing(tab)
   13.         ├─formatters::make_row_df(tt)
   14.         └─rtables::make_row_df(tt)
   15.           ├─formatters::make_row_df(...)
   16.           └─rtables::make_row_df(...)
   17.             ├─formatters::make_row_df(...)
   18.             └─rtables::make_row_df(...)
   19.               ├─formatters::make_row_df(...)
   20.               └─rtables::make_row_df(...)
   21.                 ├─formatters::pagdfrow(...)
   22.                 │ └─base::data.frame(...)
   23.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   25.                   ├─base::unlist(...)
   26.                   └─base::mapply(...)
   27.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   28.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   30.                         ├─base::unlist(...)
   31.                         └─base::vapply(...)
   32.                           ├─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─base::vapply(...)
   35.                               └─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   37.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |     14  15 | h_response_subgroups [7.5s]                                    
  
  ✔ |      3   5 | h_stack_by_baskets [1.8s]                                      
  
  ✔ |      8  43 | h_step [9.0s]                                                  
  
  ✖ | 1    3   6 | h_survival_biomarkers_subgroups [3.1s]                         
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-h_survival_biomarkers_subgroups.R:96:3'): h_tab_surv_one_biomarker works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-h_survival_biomarkers_subgroups.R:96: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. └─tern::h_tab_surv_one_biomarker(...)
   10.   └─tern::h_tab_one_biomarker(...)
   11.     └─rtables::build_table(lyt, df = df)
   12.       └─rtables::update_ref_indexing(tab)
   13.         ├─formatters::make_row_df(tt)
   14.         └─rtables::make_row_df(tt)
   15.           ├─formatters::make_row_df(...)
   16.           └─rtables::make_row_df(...)
   17.             ├─formatters::make_row_df(...)
   18.             └─rtables::make_row_df(...)
   19.               ├─formatters::make_row_df(...)
   20.               └─rtables::make_row_df(...)
   21.                 ├─formatters::pagdfrow(...)
   22.                 │ └─base::data.frame(...)
   23.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   25.                   ├─base::unlist(...)
   26.                   └─base::mapply(...)
   27.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   28.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   30.                         ├─base::unlist(...)
   31.                         └─base::vapply(...)
   32.                           ├─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─base::vapply(...)
   35.                               └─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   37.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |     16  17 | h_survival_duration_subgroups [9.6s]                           
  
  ✔ |      2   0 | imputation_rule                                                
  
  ✔ |          7 | individual_patient_plot [3.7s]                                 
  
  ✖ | 4    2  17 | logistic_regression [36.3s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-logistic_regression.R:178:3'): logistic_regression_cols works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-logistic_regression.R:178:3
    2. └─rtables::build_table(...)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[2L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:224:3'): summarize_logistic works as expected for interaction model with continuous variable
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:224:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:248:3'): summarize_logistic works as expected for interaction model with categorical variable
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:248:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:268:3'): summarize_logistic works as expected for simple model without interactions
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:268:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    6  18 | make_afun [2.6s]                                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-make_afun.R:208:3'): make_afun by default removes results from `.in_ref_col`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-make_afun.R:208:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3    4   5 | odds_ratio [5.3s]                                              
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-odds_ratio.R:118:3'): estimate_odds_ratio estimates right OR and CI (unstratified analysis)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = data) at test-odds_ratio.R:118:3
    2. └─rtables::build_table(., df = data)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-odds_ratio.R:136:3'): estimate_odds_ratio estimates right OR and CI (stratified analysis)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-odds_ratio.R:136:3
    2. │ └─base::force(code)
    3. ├─... %>% build_table(df = data)
    4. └─rtables::build_table(., df = data)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::pagdfrow(...)
   11.         │ └─base::data.frame(...)
   12.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.           ├─base::unlist(...)
   15.           └─base::mapply(...)
   16.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                 ├─base::unlist(...)
   20.                 └─base::vapply(...)
   21.                   ├─formatters (local) FUN(X[[i]], ...)
   22.                   └─formatters (local) FUN(X[[i]], ...)
   23.                     └─base::vapply(...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-odds_ratio.R:174:3'): estimate_odds_ratio works with strata and combined groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-odds_ratio.R:174:3
    2. │ └─base::force(code)
    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.       ├─formatters::make_row_df(...)
    8.       └─rtables::make_row_df(...)
    9.         ├─formatters::pagdfrow(...)
   10.         │ └─base::data.frame(...)
   11.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           ├─base::unlist(...)
   14.           └─base::mapply(...)
   15.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 ├─base::unlist(...)
   19.                 └─base::vapply(...)
   20.                   ├─formatters (local) FUN(X[[i]], ...)
   21.                   └─formatters (local) FUN(X[[i]], ...)
   22.                     └─base::vapply(...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3    9  16 | prop_diff [6.1s]                                               
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-prop_diff.R:243:3'): `estimate_proportion_diff` is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:243:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prop_diff.R:269:3'): `estimate_proportion_diff` and cmh is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:269:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prop_diff.R:298:3'): `estimate_proportion_diff` and strat_newcombe is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:298:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1        0 | prune_occurrences [23.5s]                                      
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-prune_occurrences.R:2:1'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-prune_occurrences.R:2:1
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 4    2   5 | response_biomarkers_subgroups [15.6s]                          
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-response_biomarkers_subgroups.R:100:3'): tabulate_rsp_biomarkers works as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df) at test-response_biomarkers_subgroups.R:100:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:119:3'): tabulate_rsp_biomarkers functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df) at test-response_biomarkers_subgroups.R:119:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::pagdfrow(...)
   17.                       │ └─base::data.frame(...)
   18.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                         ├─base::unlist(...)
   21.                         └─base::mapply(...)
   22.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                               ├─base::unlist(...)
   26.                               └─base::vapply(...)
   27.                                 ├─formatters (local) FUN(X[[i]], ...)
   28.                                 └─formatters (local) FUN(X[[i]], ...)
   29.                                   └─base::vapply(...)
   30.                                     └─formatters (local) FUN(X[[i]], ...)
   31.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:143:3'): tabulate_rsp_biomarkers works with only a single biomarker in the data frame
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(tabulate_rsp_biomarkers(df1)) at test-response_biomarkers_subgroups.R:143: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. └─tern::tabulate_rsp_biomarkers(df1)
   10.   └─base::lapply(...)
   11.     └─tern (local) FUN(X[[i]], ...)
   12.       └─tern::h_tab_rsp_one_biomarker(...)
   13.         └─tern::h_tab_one_biomarker(...)
   14.           └─rtables::build_table(lyt, df = df)
   15.             └─rtables::update_ref_indexing(tab)
   16.               ├─formatters::make_row_df(tt)
   17.               └─rtables::make_row_df(tt)
   18.                 ├─formatters::make_row_df(...)
   19.                 └─rtables::make_row_df(...)
   20.                   ├─formatters::make_row_df(...)
   21.                   └─rtables::make_row_df(...)
   22.                     ├─formatters::make_row_df(...)
   23.                     └─rtables::make_row_df(...)
   24.                       ├─formatters::pagdfrow(...)
   25.                       │ └─base::data.frame(...)
   26.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   27.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   28.                         ├─base::unlist(...)
   29.                         └─base::mapply(...)
   30.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   31.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   32.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   33.                               ├─base::unlist(...)
   34.                               └─base::vapply(...)
   35.                                 ├─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters (local) FUN(X[[i]], ...)
   37.                                   └─base::vapply(...)
   38.                                     └─formatters (local) FUN(X[[i]], ...)
   39.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   40.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:162:3'): tabulate_rsp_biomarkers na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df, na_str = "<No data>") at test-response_biomarkers_subgroups.R:162:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 7    5   6 | response_subgroups [26.1s]                                     
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-response_subgroups.R:98:3'): a_response_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-response_subgroups.R:98:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:117:3'): tabulate_rsp_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:117:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:138:3'): tabulate_rsp_subgroups correctly calculates column indices
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:138:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:183:3'): tabulate_rsp_subgroups functions as expected with valid input extreme values in OR table
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-response_subgroups.R:183:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:200:3'): tabulate_rsp_subgroups functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:200:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::pagdfrow(...)
   14.               │ └─base::data.frame(...)
   15.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.                 ├─base::unlist(...)
   18.                 └─base::mapply(...)
   19.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                       ├─base::unlist(...)
   23.                       └─base::vapply(...)
   24.                         ├─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters (local) FUN(X[[i]], ...)
   26.                           └─base::vapply(...)
   27.                             └─formatters (local) FUN(X[[i]], ...)
   28.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:220:3'): tabulate_rsp_subgroups functions as expected when 0 obs in one arm
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:220:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:254:3'): tabulate_rsp_subgroups na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:254:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1        0 | rtables_access [19.8s]                                         
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-rtables_access.R:1:1'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-rtables_access.R:1:1
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1        0 | score_occurrences [2.9s]                                       
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-score_occurrences.R:52:3'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─base::eval(...)
    2. │ └─base::eval(...)
    3. │   ├─... %>% prune_table() at test-score_occurrences.R:52:3
    4. │   └─rtables::build_table(lyt, dfae, alt_counts_df = attr(dfae, "dfsl"))
    5. │     └─rtables::update_ref_indexing(tab)
    6. │       ├─formatters::make_row_df(tt)
    7. │       └─rtables::make_row_df(tt)
    8. │         ├─formatters::make_row_df(...)
    9. │         └─rtables::make_row_df(...)
   10. │           ├─formatters::make_row_df(...)
   11. │           └─rtables::make_row_df(...)
   12. │             ├─formatters::pagdfrow(...)
   13. │             │ └─base::data.frame(...)
   14. │             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15. │             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16. │               ├─base::unlist(...)
   17. │               └─base::mapply(...)
   18. │                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19. │                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20. │                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21. │                     ├─base::unlist(...)
   22. │                     └─base::vapply(...)
   23. │                       ├─formatters (local) FUN(X[[i]], ...)
   24. │                       └─formatters (local) FUN(X[[i]], ...)
   25. │                         └─base::vapply(...)
   26. │                           └─formatters (local) FUN(X[[i]], ...)
   27. │                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28. │                               └─formatters::open_font_dev(fontspec)
   29. └─rtables::prune_table(.)
   30.   └─methods::is(tt, "TableRow")
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 5   10  14 | split_cols_by_groups [6.9s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-split_cols_by_groups.R:61:3'): split_cols_by_groups manages combinations of columns
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:61:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:76:3'): split_cols_by_groups manages combinations of columns with reference
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:76:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:95:3'): split_cols_by_groups equivalent to split_cols_by when no groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:95:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:113:3'): split_cols_by_groups equivalent to split_cols_by with ref_col but no groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:113:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:131:3'): split_cols_by_groups manages combinations of columns with reference and alt_counts_df
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM_ANL, alt_counts_df = DM) at test-split_cols_by_groups.R:131:3
    2. └─rtables::build_table(., DM_ANL, alt_counts_df = DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |      9  11 | stat [1.8s]                                                    
  
  ✖ | 3    3   6 | summarize_ancova [15.6s]                                       
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_ancova.R:89:3'): summarize_ancova works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-summarize_ancova.R:89:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_ancova.R:120:3'): summarize_ancova works with interaction
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris_new) at test-summarize_ancova.R:120:3
    2. └─rtables::build_table(., iris_new)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_ancova.R:180:3'): summarize_ancova works with irregular arm levels
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adrs_single, alt_counts_df = adsl) at test-summarize_ancova.R:180:3
    2. └─rtables::build_table(., adrs_single, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 1    3   3 | summarize_change [2.5s]                                        
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_change.R:72:3'): summarize_change works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta_test) at test-summarize_change.R:72:3
    2. └─rtables::build_table(., dta_test)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3        0 | summarize_colvars [6.5s]                                       
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_colvars.R:25:3'): summarize_colvars works as expected without column split and default behavior
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:25:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_colvars.R:40:3'): summarize_colvars works as expected with column split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:40:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_colvars.R:60:3'): summarize_colvars works when selecting statistics and custom formatting
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:60:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 10    4   4 | summarize_coxreg [50.4s]                                      
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_coxreg.R:82:3'): summarize_coxreg adds the univariate Cox regression layer to rtables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:82:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:123:3'): summarize_coxreg .section_div argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:123:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:137:3'): summarize_coxreg works with interactions in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:137:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:151:3'): summarize_coxreg 'at' argument works in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:151:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:164:3'): summarize_coxreg `na_str` argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:164:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:177:3'): summarize_coxreg works without treatment arm in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:177:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:191:3'): summarize_coxreg works with numeric covariate without treatment arm in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:191:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:207:3'): summarize_coxreg works with character covariate in univariate case when interaction = TRUE
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:207:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:235:3'): summarize_coxreg adds the multivariate Cox regression layer to rtables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:235:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:274:3'): warning/error messages work
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-summarize_coxreg.R:274:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─... %>% build_table(df = dta_bladder)
    8. └─rtables::build_table(., df = dta_bladder)
    9.   └─rtables::update_ref_indexing(tab)
   10.     ├─formatters::make_row_df(tt)
   11.     └─rtables::make_row_df(tt)
   12.       ├─formatters::make_row_df(...)
   13.       └─rtables::make_row_df(...)
   14.         ├─formatters::make_row_df(...)
   15.         └─rtables::make_row_df(...)
   16.           ├─formatters::make_row_df(...)
   17.           └─rtables::make_row_df(...)
   18.             ├─formatters::make_row_df(...)
   19.             └─rtables::make_row_df(...)
   20.               ├─formatters::pagdfrow(...)
   21.               │ └─base::data.frame(...)
   22.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 ├─base::unlist(...)
   25.                 └─base::mapply(...)
   26.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   27.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       ├─base::unlist(...)
   30.                       └─base::vapply(...)
   31.                         ├─formatters (local) FUN(X[[i]], ...)
   32.                         └─formatters (local) FUN(X[[i]], ...)
   33.                           └─base::vapply(...)
   34.                             └─formatters (local) FUN(X[[i]], ...)
   35.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   36.                                 └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 2   15  23 | summarize_glm_count [24.9s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_glm_count.R:413:3'): summarize_glm_count works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-summarize_glm_count.R:413:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_glm_count.R:444:3'): summarize_glm_count (negative binomial) works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-summarize_glm_count.R:444:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 6   10  10 | summarize_num_patients [11.8s]                                 
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_num_patients.R:44:3'): summarize_num_patients works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:44:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:152:3'): summarize_num_patients with count_by works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:152:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:202:5'): summarize_num_patients with count_by different combinations works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:202:5
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:223:3'): analyze_num_patients works well for pagination
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-summarize_num_patients.R:223:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., df)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::pagdfrow(...)
   13.           │ └─base::data.frame(...)
   14.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.             ├─base::unlist(...)
   17.             └─base::mapply(...)
   18.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                   ├─base::unlist(...)
   22.                   └─base::vapply(...)
   23.                     ├─formatters (local) FUN(X[[i]], ...)
   24.                     └─formatters (local) FUN(X[[i]], ...)
   25.                       └─base::vapply(...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:262:3'): summarize_num_patients works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-summarize_num_patients.R:262:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:291:3'): analyze_num_patients works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-summarize_num_patients.R:291:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 7    2   2 | summarize_patients_exposure_in_cols [6.4s]                     
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-summarize_patients_exposure_in_cols.R:42:3'): summarize_patients_exposure_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:42:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:56:3'): summarize_patients_exposure_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:56:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:81:5'): summarize_patients_exposure_in_cols returns correct column label when no variable split and only one statistic
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:81:5
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:103:3'): analyze_patients_exposure_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:103:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:116:3'): analyze_patients_exposure_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:116:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:135:5'): analyze_patients_exposure_in_cols works with no variable split and only one statistic
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:135:5
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:163:3'): patients_exposure_in_cols works with totals after the row split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, anl_local) at test-summarize_patients_exposure_in_cols.R:163:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 4    2   3 | survival_biomarkers_subgroups [22.6s]                          
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-survival_biomarkers_subgroups.R:82:3'): tabulate_survival_biomarkers works as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(df, time_unit = as.character(adtte_f$AVALU[1])) at test-survival_biomarkers_subgroups.R:82:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:102:3'): tabulate_survival_biomarkers functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(df, time_unit = as.character(adtte_f$AVALU[1])) at test-survival_biomarkers_subgroups.R:102:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::pagdfrow(...)
   17.                       │ └─base::data.frame(...)
   18.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                         ├─base::unlist(...)
   21.                         └─base::mapply(...)
   22.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                               ├─base::unlist(...)
   26.                               └─base::vapply(...)
   27.                                 ├─formatters (local) FUN(X[[i]], ...)
   28.                                 └─formatters (local) FUN(X[[i]], ...)
   29.                                   └─base::vapply(...)
   30.                                     └─formatters (local) FUN(X[[i]], ...)
   31.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:126:3'): tabulate_survival_biomarkers works with only a single biomarker in the data frame
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(tabulate_survival_biomarkers(df1)) at test-survival_biomarkers_subgroups.R:126: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. └─tern::tabulate_survival_biomarkers(df1)
   10.   └─base::lapply(...)
   11.     └─tern (local) FUN(X[[i]], ...)
   12.       └─tern::h_tab_surv_one_biomarker(...)
   13.         └─tern::h_tab_one_biomarker(...)
   14.           └─rtables::build_table(lyt, df = df)
   15.             └─rtables::update_ref_indexing(tab)
   16.               ├─formatters::make_row_df(tt)
   17.               └─rtables::make_row_df(tt)
   18.                 ├─formatters::make_row_df(...)
   19.                 └─rtables::make_row_df(...)
   20.                   ├─formatters::make_row_df(...)
   21.                   └─rtables::make_row_df(...)
   22.                     ├─formatters::make_row_df(...)
   23.                     └─rtables::make_row_df(...)
   24.                       ├─formatters::pagdfrow(...)
   25.                       │ └─base::data.frame(...)
   26.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   27.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   28.                         ├─base::unlist(...)
   29.                         └─base::mapply(...)
   30.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   31.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   32.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   33.                               ├─base::unlist(...)
   34.                               └─base::vapply(...)
   35.                                 ├─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters (local) FUN(X[[i]], ...)
   37.                                   └─base::vapply(...)
   38.                                     └─formatters (local) FUN(X[[i]], ...)
   39.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   40.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:146:3'): tabulate_survival_biomarkers na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(...) at test-survival_biomarkers_subgroups.R:146:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 4    4   5 | survival_coxph_pairwise [7.0s]                                 
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-survival_coxph_pairwise.R:88:3'): coxph_pairwise works with default arguments and no stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:88:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:110:3'): coxph_pairwise works with customized arguments and no stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:110:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:133:3'): coxph_pairwise works with default arguments and stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:133:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:155:3'): coxph_pairwise works with customized arguments and stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:155:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 7    4   6 | survival_duration_subgroups [16.6s]                            
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-survival_duration_subgroups.R:81:3'): a_survival_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-survival_duration_subgroups.R:81:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:98:3'): tabulate_survival_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:98:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:113:3'): tabulate_survival_subgroups functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:113:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::pagdfrow(...)
   14.               │ └─base::data.frame(...)
   15.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.                 ├─base::unlist(...)
   18.                 └─base::mapply(...)
   19.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                       ├─base::unlist(...)
   23.                       └─base::vapply(...)
   24.                         ├─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters (local) FUN(X[[i]], ...)
   26.                           └─base::vapply(...)
   27.                             └─formatters (local) FUN(X[[i]], ...)
   28.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:130:3'): tabulate_survival_subgroups functions as expected with extreme values in subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:130:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:145:3'): tabulate_survival_subgroups functions as expected when one arm has 0 records
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:145:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:165:3'): tabulate_survival_subgroups works correctly with both `n_tot` and `n_tot_events` in `vars`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:165:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_hr, df = df$hr)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:222:3'): tabulate_survival_subgroups na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:222:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 3    4   4 | survival_time [1.2s]                                           
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-survival_time.R:94:3'): surv_time works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:94:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_time.R:117:3'): surv_time works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:117:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_time.R:144:3'): surv_time works with referential footnotes
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:144:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 5    5   6 | survival_timepoint [2.0s]                                      
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-survival_timepoint.R:72:3'): surv_timepoint works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:72:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:97:3'): surv_timepoint works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:97:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:173:3'): surv_timepoint for survival diff works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:173:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:199:3'): surv_timepoint for survival diff works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:199:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:225:3'): surv_timepoint works with method = both
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-survival_timepoint.R:225: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. ├─... %>% build_table(df = adtte_f)
   10. └─rtables::build_table(., df = adtte_f)
   11.   └─rtables::update_ref_indexing(tab)
   12.     ├─formatters::make_row_df(tt)
   13.     └─rtables::make_row_df(tt)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::make_row_df(...)
   17.         └─rtables::make_row_df(...)
   18.           ├─formatters::pagdfrow(...)
   19.           │ └─base::data.frame(...)
   20.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.             ├─base::unlist(...)
   23.             └─base::mapply(...)
   24.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                   ├─base::unlist(...)
   28.                   └─base::vapply(...)
   29.                     ├─formatters (local) FUN(X[[i]], ...)
   30.                     └─formatters (local) FUN(X[[i]], ...)
   31.                       └─base::vapply(...)
   32.                         └─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                             └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 5    6   7 | test_proportion_diff [2.5s]                                    
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-test_proportion_diff.R:124:3'): test_proportion_diff returns right result
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:124:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:142:3'): test_proportion_diff edge case: all responder by chisq
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:142:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:160:3'): test_proportion_diff edge case: all responder by schouten
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:160:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:178:3'): test_proportion_diff edge case: all responder by fisher
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:178:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:199:3'): test_proportion_diff edge case: all responder by CMH
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:199:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |     59  79 | utils [7.5s]                                                   
  
  ✔ |         42 | utils_checkmate [1.4s]                                         
  
  ✔ |      6  22 | utils_default_stats_formats_labels                             
  
  ✔ |     13  26 | utils_factor                                                   
  
  ✖ | 2    1   1 | utils_ggplot [2.3s]                                            
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-utils_ggplot.R:15:3'): rtable2gg works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = dta) at test-utils_ggplot.R:15:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_ggplot.R:50:3'): rtable2gg works with multiple column splits
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = dta2) at test-utils_ggplot.R:50:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✔ |          8 | utils_grid [2.7s]                                              
  
  ✖ | 9   11  14 | utils_rtables [43.6s]                                          
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-utils_rtables.R:2:3'): to_string_matrix works correctly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:2:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::make_row_df(...)
   15.             └─rtables::make_row_df(...)
   16.               ├─formatters::make_row_df(...)
   17.               └─rtables::make_row_df(...)
   18.                 ├─formatters::pagdfrow(...)
   19.                 │ └─base::data.frame(...)
   20.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                   ├─base::unlist(...)
   23.                   └─base::mapply(...)
   24.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                         ├─base::unlist(...)
   28.                         └─base::vapply(...)
   29.                           ├─formatters (local) FUN(X[[i]], ...)
   30.                           └─formatters (local) FUN(X[[i]], ...)
   31.                             └─base::vapply(...)
   32.                               └─formatters (local) FUN(X[[i]], ...)
   33.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:98:3'): add_rowcounts works with one row split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-utils_rtables.R:98:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:108:3'): add_rowcounts works with multiple column and row splits
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-utils_rtables.R:108:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:123:3'): add_rowcounts works with pruning
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:123:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::pagdfrow(...)
   15.             │ └─base::data.frame(...)
   16.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.               ├─base::unlist(...)
   19.               └─base::mapply(...)
   20.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                     ├─base::unlist(...)
   24.                     └─base::vapply(...)
   25.                       ├─formatters (local) FUN(X[[i]], ...)
   26.                       └─formatters (local) FUN(X[[i]], ...)
   27.                         └─base::vapply(...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:150:3'): add_rowcounts works with alt_counts = TRUE
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:150:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM, alt_counts_df = DM_alt)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::pagdfrow(...)
   15.             │ └─base::data.frame(...)
   16.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.               ├─base::unlist(...)
   19.               └─base::mapply(...)
   20.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                     ├─base::unlist(...)
   24.                     └─base::vapply(...)
   25.                       ├─formatters (local) FUN(X[[i]], ...)
   26.                       └─formatters (local) FUN(X[[i]], ...)
   27.                         └─base::vapply(...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:181:3'): as.rtable.data.frame works correctly
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'toString': argument "fontspec" is missing, with no default
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(res) at test-utils_rtables.R:181:3
   2.   └─rlang::cnd_signal(state$error)
  
  Error ('test-utils_rtables.R:246:3'): append_varlabels works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, DM) at test-utils_rtables.R:246:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:258:3'): append_varlabels correctly concatenates multiple variable labels
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, DM) at test-utils_rtables.R:258:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:269:3'): default na_str works properly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tmp) at test-utils_rtables.R:269:3
    2. └─rtables::build_table(., tmp)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
  ✖ | 7        1 | utils_split_fun [16.1s]                                        
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test-utils_split_fun.R:11:3'): analyze_vars works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = tern_ex_adsl) at test-utils_split_fun.R:11:3
    2. └─rtables::build_table(., df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:31:3'): compare_vars works as expected with ref_group first split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = tern_ex_adsl) at test-utils_split_fun.R:31:3
    2. └─rtables::build_table(., df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:43:3'): summarize_ancova works as expected with ref_group position split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adsl) at test-utils_split_fun.R:43:3
    2. └─rtables::build_table(., tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:64:3'): binary endpoint layouts work as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adrs_f) at test-utils_split_fun.R:64:3
    2. └─rtables::build_table(., adrs_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:85:3'): time to event layouts works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adtte_f) at test-utils_split_fun.R:85:3
    2. └─rtables::build_table(., adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:108:3'): summarize_ancova works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-utils_split_fun.R:108:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:128:3'): level_order works for integerish and characters
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-utils_split_fun.R:128:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  ────────────────────────────────────────────────────────────────────────────────
  
                                                                                  
  ══ Results ═════════════════════════════════════════════════════════════════════
  Duration: 1080.3 s
  
  ── Skipped tests (482) ─────────────────────────────────────────────────────────
  • On CRAN (482): 'test-abnormal.R:24:3', 'test-abnormal.R:51:3',
    'test-abnormal.R:80:3', 'test-abnormal.R:186:3',
    'test-abnormal_by_baseline.R:16:3', 'test-abnormal_by_baseline.R:46:3',
    'test-abnormal_by_baseline.R:80:3', 'test-abnormal_by_marked.R:80:3',
    'test-abnormal_by_marked.R:135:3', 'test-abnormal_by_worst_grade.R:43:3',
    'test-abnormal_by_worst_grade_worsen.R:64:3',
    'test-abnormal_by_worst_grade_worsen.R:82:3',
    'test-abnormal_by_worst_grade_worsen.R:102:3',
    'test-abnormal_by_worst_grade_worsen.R:122:3',
    'test-abnormal_by_worst_grade_worsen.R:142:3',
    'test-abnormal_by_worst_grade_worsen.R:162:3',
    'test-abnormal_by_worst_grade_worsen.R:184:3',
    'test-analyze_variables.R:7:3', 'test-analyze_variables.R:17:3',
    'test-analyze_variables.R:31:3', 'test-analyze_variables.R:39:3',
    'test-analyze_variables.R:48:3', 'test-analyze_variables.R:62:3',
    'test-analyze_variables.R:72:3', 'test-analyze_variables.R:81:3',
    'test-analyze_variables.R:90:3', 'test-analyze_variables.R:113:3',
    'test-analyze_variables.R:127:3', 'test-analyze_variables.R:134:3',
    'test-analyze_variables.R:143:3', 'test-analyze_variables.R:152:3',
    'test-analyze_variables.R:171:3', 'test-analyze_variables.R:228:3',
    'test-analyze_variables.R:245:3', 'test-analyze_variables.R:275:3',
    'test-analyze_variables.R:502:3', 'test-bland-altman.R:79:3',
    'test-bland-altman.R:103:3', 'test-compare_variables.R:9:3',
    'test-compare_variables.R:20:3', 'test-compare_variables.R:29:3',
    'test-compare_variables.R:47:3', 'test-compare_variables.R:69:3',
    'test-compare_variables.R:78:3', 'test-control_logistic.R:8:3',
    'test-control_step.R:5:3', 'test-control_survival.R:7:3',
    'test-control_survival.R:21:3', 'test-control_survival.R:36:3',
    'test-count_cumulative.R:12:3', 'test-count_cumulative.R:30:3',
    'test-count_cumulative.R:44:3', 'test-count_cumulative.R:62:3',
    'test-count_missed_doses.R:8:3', 'test-count_missed_doses.R:17:3',
    'test-count_missed_doses.R:24:3', 'test-count_missed_doses.R:35:3',
    'test-count_occurrences.R:10:3', 'test-count_occurrences.R:65:3',
    'test-count_occurrences.R:109:3', 'test-count_occurrences_by_grade.R:26:3',
    'test-count_occurrences_by_grade.R:40:3',
    'test-count_occurrences_by_grade.R:48:3',
    'test-count_occurrences_by_grade.R:67:3',
    'test-count_occurrences_by_grade.R:84:3',
    'test-count_occurrences_by_grade.R:135:3',
    'test-count_patients_events_in_cols.R:23:3',
    'test-count_patients_events_in_cols.R:39:3',
    'test-count_patients_with_event.R:14:3',
    'test-count_patients_with_event.R:31:3',
    'test-count_patients_with_event.R:121:3',
    'test-count_patients_with_flags.R:14:3',
    'test-count_patients_with_flags.R:31:3',
    'test-count_patients_with_flags.R:52:3', 'test-count_values.R:8:3',
    'test-count_values.R:24:3', 'test-count_values.R:39:3',
    'test-count_values.R:47:3', 'test-count_values.R:55:3',
    'test-count_values.R:91:3', 'test-count_values.R:101:3', 'test-coxph.R:5:3',
    'test-coxph.R:17:3', 'test-coxph.R:41:3', 'test-coxph.R:56:3',
    'test-coxph.R:108:3', 'test-coxreg.R:44:3', 'test-coxreg.R:56:3',
    'test-coxreg.R:67:3', 'test-coxreg.R:80:3', 'test-coxreg.R:92:3',
    'test-coxreg.R:124:3', 'test-coxreg.R:136:3', 'test-coxreg.R:147:3',
    'test-coxreg.R:158:3', 'test-coxreg.R:170:3', 'test-coxreg.R:182:3',
    'test-coxreg.R:193:3', 'test-coxreg.R:204:3', 'test-coxreg.R:216:3',
    'test-coxreg.R:225:3', 'test-coxreg.R:248:3', 'test-coxreg.R:298:3',
    'test-coxreg.R:309:3', 'test-coxreg.R:320:3', 'test-coxreg.R:360:3',
    'test-coxreg.R:374:3', 'test-coxreg.R:388:3', 'test-coxreg.R:533:3',
    'test-coxreg.R:585:3', 'test-decorate_grob.R:54:3',
    'test-decorate_grob.R:123:3', 'test-desctools_binom_diff.R:18:3',
    'test-desctools_binom_diff.R:33:3', 'test-desctools_binom_diff.R:42:3',
    'test-desctools_binom_diff.R:51:3', 'test-desctools_binom_diff.R:63:3',
    'test-df_explicit_na.R:22:3', 'test-df_explicit_na.R:36:3',
    'test-df_explicit_na.R:44:3', 'test-df_explicit_na.R:57:3',
    'test-df_explicit_na.R:70:3', 'test-estimate_incidence_rate.R:10:3',
    'test-estimate_incidence_rate.R:24:3', 'test-estimate_incidence_rate.R:31:3',
    'test-estimate_incidence_rate.R:38:3', 'test-estimate_incidence_rate.R:45:3',
    'test-estimate_incidence_rate.R:56:3', 'test-estimate_incidence_rate.R:81:3',
    'test-estimate_multinom_rsp.R:6:3', 'test-estimate_multinom_rsp.R:14:3',
    'test-estimate_proportion.R:9:3', 'test-estimate_proportion.R:29:3',
    'test-estimate_proportion.R:43:3', 'test-estimate_proportion.R:78:3',
    'test-estimate_proportion.R:106:3', 'test-estimate_proportion.R:131:3',
    'test-estimate_proportion.R:142:3', 'test-estimate_proportion.R:154:3',
    'test-estimate_proportion.R:170:3', 'test-estimate_proportion.R:181:3',
    'test-estimate_proportion.R:203:3', 'test-estimate_proportion.R:210:3',
    'test-estimate_proportion.R:223:3', 'test-estimate_proportion.R:247:3',
    'test-fit_rsp_step.R:29:3', 'test-fit_rsp_step.R:58:3',
    'test-fit_rsp_step.R:85:3', 'test-fit_survival_step.R:34:3',
    'test-fit_survival_step.R:65:3', 'test-fit_survival_step.R:88:3',
    'test-formatting_functions.R:5:3', 'test-formatting_functions.R:12:3',
    'test-formatting_functions.R:19:3', 'test-formatting_functions.R:26:3',
    'test-formatting_functions.R:33:3', 'test-formatting_functions.R:40:3',
    'test-formatting_functions.R:47:3', 'test-formatting_functions.R:59:3',
    'test-formatting_functions.R:66:3', 'test-formatting_functions.R:73:3',
    'test-formatting_functions.R:82:3', 'test-formatting_functions.R:91:3',
    'test-formatting_functions.R:116:3', 'test-formatting_functions.R:125:3',
    'test-formatting_functions.R:134:3', 'test-formatting_functions.R:150:3',
    'test-formatting_functions.R:158:3', 'test-formatting_functions.R:172:3',
    'test-formatting_functions.R:181:3', 'test-formatting_functions.R:190:3',
    'test-g_km.R:15:3', 'test-g_km.R:28:3', 'test-g_km.R:40:3',
    'test-g_km.R:62:3', 'test-g_km.R:77:3', 'test-g_km.R:114:3',
    'test-g_km.R:128:3', 'test-g_km.R:147:3', 'test-g_km.R:162:3',
    'test-g_lineplot.R:9:3', 'test-g_lineplot.R:30:3', 'test-g_lineplot.R:50:3',
    'test-g_step.R:18:3', 'test-g_step.R:28:3', 'test-g_step.R:36:3',
    'test-g_step.R:65:3', 'test-g_waterfall.R:7:3', 'test-g_waterfall.R:29:3',
    'test-h_adsl_adlb_merge_using_worst_flag.R:11:3',
    'test-h_adsl_adlb_merge_using_worst_flag.R:25:3',
    'test-h_adsl_adlb_merge_using_worst_flag.R:39:3',
    'test-h_adsl_adlb_merge_using_worst_flag.R:55:5',
    'test-h_adsl_adlb_merge_using_worst_flag.R:68:3', 'test-h_format_row.R:11:3',
    'test-h_km.R:11:3', 'test-h_km.R:18:3', 'test-h_km.R:26:3',
    'test-h_km.R:34:3', 'test-h_km.R:43:3', 'test-h_km.R:58:3',
    'test-h_km.R:68:3', 'test-h_km.R:77:3', 'test-h_km.R:84:3',
    'test-h_km.R:99:3', 'test-h_km.R:118:3', 'test-h_km.R:131:3',
    'test-h_km.R:143:3', 'test-h_logistic_regression.R:28:3',
    'test-h_logistic_regression.R:49:3', 'test-h_logistic_regression.R:74:3',
    'test-h_logistic_regression.R:107:3', 'test-h_logistic_regression.R:146:5',
    'test-h_logistic_regression.R:204:3', 'test-h_logistic_regression.R:218:3',
    'test-h_logistic_regression.R:230:3', 'test-h_logistic_regression.R:247:3',
    'test-h_logistic_regression.R:283:3', 'test-h_logistic_regression.R:300:3',
    'test-h_logistic_regression.R:317:3', 'test-h_logistic_regression.R:336:3',
    'test-h_logistic_regression.R:373:3', 'test-h_logistic_regression.R:395:3',
    'test-h_logistic_regression.R:442:3', 'test-h_map_for_count_abnormal.R:27:3',
    'test-h_map_for_count_abnormal.R:49:3',
    'test-h_map_for_count_abnormal.R:71:5',
    'test-h_map_for_count_abnormal.R:98:5',
    'test-h_map_for_count_abnormal.R:125:5',
    'test-h_map_for_count_abnormal.R:154:5',
    'test-h_map_for_count_abnormal.R:182:5', 'test-h_pkparam_sort.R:6:3',
    'test-h_pkparam_sort.R:17:3', 'test-h_response_biomarkers_subgroups.R:27:3',
    'test-h_response_biomarkers_subgroups.R:51:3',
    'test-h_response_biomarkers_subgroups.R:69:3',
    'test-h_response_biomarkers_subgroups.R:92:3',
    'test-h_response_subgroups.R:28:3', 'test-h_response_subgroups.R:38:3',
    'test-h_response_subgroups.R:55:3', 'test-h_response_subgroups.R:67:3',
    'test-h_response_subgroups.R:79:3', 'test-h_response_subgroups.R:98:3',
    'test-h_response_subgroups.R:108:3', 'test-h_response_subgroups.R:122:3',
    'test-h_response_subgroups.R:141:3', 'test-h_response_subgroups.R:155:3',
    'test-h_response_subgroups.R:167:3', 'test-h_response_subgroups.R:179:3',
    'test-h_response_subgroups.R:201:3', 'test-h_response_subgroups.R:224:3',
    'test-h_stack_by_baskets.R:9:3', 'test-h_stack_by_baskets.R:48:5',
    'test-h_stack_by_baskets.R:76:5', 'test-h_step.R:30:3', 'test-h_step.R:56:3',
    'test-h_step.R:124:3', 'test-h_step.R:193:3', 'test-h_step.R:240:3',
    'test-h_step.R:310:3', 'test-h_step.R:435:3', 'test-h_step.R:476:3',
    'test-h_survival_biomarkers_subgroups.R:37:3',
    'test-h_survival_biomarkers_subgroups.R:57:3',
    'test-h_survival_biomarkers_subgroups.R:75:3',
    'test-h_survival_duration_subgroups.R:35:3',
    'test-h_survival_duration_subgroups.R:55:3',
    'test-h_survival_duration_subgroups.R:75:3',
    'test-h_survival_duration_subgroups.R:102:3',
    'test-h_survival_duration_subgroups.R:124:3',
    'test-h_survival_duration_subgroups.R:139:3',
    'test-h_survival_duration_subgroups.R:151:3',
    'test-h_survival_duration_subgroups.R:170:3',
    'test-h_survival_duration_subgroups.R:183:3',
    'test-h_survival_duration_subgroups.R:198:3',
    'test-h_survival_duration_subgroups.R:212:3',
    'test-h_survival_duration_subgroups.R:226:3',
    'test-h_survival_duration_subgroups.R:238:3',
    'test-h_survival_duration_subgroups.R:263:3',
    'test-h_survival_duration_subgroups.R:275:3',
    'test-h_survival_duration_subgroups.R:294:3', 'test-imputation_rule.R:13:3',
    'test-imputation_rule.R:31:3', 'test-logistic_regression.R:153:3',
    'test-logistic_regression.R:171:3', 'test-make_afun.R:35:3',
    'test-make_afun.R:88:3', 'test-make_afun.R:122:3', 'test-make_afun.R:170:3',
    'test-make_afun.R:238:3', 'test-make_afun.R:266:3', 'test-odds_ratio.R:14:3',
    'test-odds_ratio.R:41:3', 'test-odds_ratio.R:58:3', 'test-odds_ratio.R:83:3',
    'test-prop_diff.R:9:3', 'test-prop_diff.R:30:3', 'test-prop_diff.R:49:3',
    'test-prop_diff.R:81:3', 'test-prop_diff.R:120:3', 'test-prop_diff.R:150:3',
    'test-prop_diff.R:225:3', 'test-prop_diff.R:333:3', 'test-prop_diff.R:357:3',
    'test-response_biomarkers_subgroups.R:35:3',
    'test-response_biomarkers_subgroups.R:74:3',
    'test-response_subgroups.R:30:3', 'test-response_subgroups.R:42:3',
    'test-response_subgroups.R:62:3', 'test-response_subgroups.R:85:3',
    'test-response_subgroups.R:240:3', 'test-split_cols_by_groups.R:11:3',
    'test-split_cols_by_groups.R:20:3', 'test-split_cols_by_groups.R:27:3',
    'test-split_cols_by_groups.R:34:3', 'test-split_cols_by_groups.R:41:3',
    'test-split_cols_by_groups.R:52:3', 'test-split_cols_by_groups.R:157:3',
    'test-split_cols_by_groups.R:166:3', 'test-split_cols_by_groups.R:175:3',
    'test-split_cols_by_groups.R:184:3', 'test-stat.R:8:5', 'test-stat.R:36:5',
    'test-stat.R:109:5', 'test-stat.R:132:5', 'test-stat.R:202:3',
    'test-stat.R:221:3', 'test-stat.R:276:3', 'test-stat.R:287:3',
    'test-stat.R:297:3', 'test-summarize_ancova.R:10:3',
    'test-summarize_ancova.R:45:3', 'test-summarize_ancova.R:85:3',
    'test-summarize_change.R:16:3', 'test-summarize_change.R:34:3',
    'test-summarize_change.R:53:3', 'test-summarize_coxreg.R:36:3',
    'test-summarize_coxreg.R:48:3', 'test-summarize_coxreg.R:60:3',
    'test-summarize_coxreg.R:76:3', 'test-summarize_glm_count.R:18:3',
    'test-summarize_glm_count.R:35:3', 'test-summarize_glm_count.R:73:3',
    'test-summarize_glm_count.R:90:3', 'test-summarize_glm_count.R:110:3',
    'test-summarize_glm_count.R:126:3', 'test-summarize_glm_count.R:164:3',
    'test-summarize_glm_count.R:180:3', 'test-summarize_glm_count.R:219:3',
    'test-summarize_glm_count.R:236:3', 'test-summarize_glm_count.R:273:7',
    'test-summarize_glm_count.R:322:3', 'test-summarize_glm_count.R:344:3',
    'test-summarize_glm_count.R:368:3', 'test-summarize_glm_count.R:392:3',
    'test-summarize_num_patients.R:6:3', 'test-summarize_num_patients.R:14:3',
    'test-summarize_num_patients.R:22:3', 'test-summarize_num_patients.R:33:3',
    'test-summarize_num_patients.R:90:3', 'test-summarize_num_patients.R:99:3',
    'test-summarize_num_patients.R:108:3', 'test-summarize_num_patients.R:119:3',
    'test-summarize_num_patients.R:130:3', 'test-summarize_num_patients.R:141:3',
    'test-summarize_patients_exposure_in_cols.R:23:3',
    'test-summarize_patients_exposure_in_cols.R:35:3',
    'test-survival_biomarkers_subgroups.R:36:3',
    'test-survival_biomarkers_subgroups.R:65:3',
    'test-survival_coxph_pairwise.R:18:3', 'test-survival_coxph_pairwise.R:39:3',
    'test-survival_coxph_pairwise.R:59:3', 'test-survival_coxph_pairwise.R:80:3',
    'test-survival_duration_subgroups.R:33:3',
    'test-survival_duration_subgroups.R:52:3',
    'test-survival_duration_subgroups.R:68:3',
    'test-survival_duration_subgroups.R:210:3', 'test-survival_time.R:16:3',
    'test-survival_time.R:37:3', 'test-survival_time.R:56:3',
    'test-survival_time.R:83:3', 'test-survival_timepoint.R:17:3',
    'test-survival_timepoint.R:39:3', 'test-survival_timepoint.R:61:3',
    'test-survival_timepoint.R:137:3', 'test-survival_timepoint.R:162:3',
    'test-test_proportion_diff.R:12:3', 'test-test_proportion_diff.R:24:3',
    'test-test_proportion_diff.R:49:3', 'test-test_proportion_diff.R:63:3',
    'test-test_proportion_diff.R:89:3', 'test-test_proportion_diff.R:113:3',
    'test-utils.R:5:3', 'test-utils.R:17:3', 'test-utils.R:30:3',
    'test-utils.R:37:3', 'test-utils.R:57:3', 'test-utils.R:65:3',
    'test-utils.R:73:3', 'test-utils.R:96:3', 'test-utils.R:105:3',
    'test-utils.R:113:3', 'test-utils.R:121:3', 'test-utils.R:167:3',
    'test-utils.R:182:3', 'test-utils.R:191:3', 'test-utils.R:202:5',
    'test-utils.R:212:3', 'test-utils.R:223:3', 'test-utils.R:234:5',
    'test-utils.R:246:5', 'test-utils.R:256:3', 'test-utils.R:267:3',
    'test-utils.R:278:5', 'test-utils.R:290:5', 'test-utils.R:300:3',
    'test-utils.R:311:3', 'test-utils.R:322:5', 'test-utils.R:334:5',
    'test-utils.R:344:3', 'test-utils.R:355:3', 'test-utils.R:366:5',
    'test-utils.R:378:5', 'test-utils.R:388:3', 'test-utils.R:399:3',
    'test-utils.R:410:5', 'test-utils.R:422:5', 'test-utils.R:434:5',
    'test-utils.R:446:3', 'test-utils.R:457:5', 'test-utils.R:469:5',
    'test-utils.R:481:5', 'test-utils.R:504:5', 'test-utils.R:516:5',
    'test-utils.R:528:5', 'test-utils.R:540:3', 'test-utils.R:551:5',
    'test-utils.R:563:5', 'test-utils.R:573:3', 'test-utils.R:584:3',
    'test-utils.R:595:5', 'test-utils.R:607:5', 'test-utils.R:619:5',
    'test-utils.R:631:3', 'test-utils.R:642:5', 'test-utils.R:654:5',
    'test-utils.R:666:5', 'test-utils.R:678:3', 'test-utils.R:689:5',
    'test-utils.R:701:5', 'test-utils.R:713:5',
    'test-utils_default_stats_formats_labels.R:4:3',
    'test-utils_default_stats_formats_labels.R:108:3',
    'test-utils_default_stats_formats_labels.R:159:3',
    'test-utils_default_stats_formats_labels.R:194:3',
    'test-utils_default_stats_formats_labels.R:205:3',
    'test-utils_default_stats_formats_labels.R:215:3',
    'test-utils_factor.R:25:3', 'test-utils_factor.R:36:3',
    'test-utils_factor.R:51:3', 'test-utils_factor.R:58:3',
    'test-utils_factor.R:74:3', 'test-utils_factor.R:86:3',
    'test-utils_factor.R:97:3', 'test-utils_factor.R:115:3',
    'test-utils_factor.R:138:3', 'test-utils_factor.R:149:3',
    'test-utils_factor.R:159:3', 'test-utils_factor.R:167:3',
    'test-utils_factor.R:175:3', 'test-utils_ggplot.R:59:3',
    'test-utils_rtables.R:44:3', 'test-utils_rtables.R:52:3',
    'test-utils_rtables.R:66:3', 'test-utils_rtables.R:71:3',
    'test-utils_rtables.R:87:3', 'test-utils_rtables.R:94:3',
    'test-utils_rtables.R:169:3', 'test-utils_rtables.R:202:3',
    'test-utils_rtables.R:215:3', 'test-utils_rtables.R:228:3',
    'test-utils_rtables.R:235:3'
  
  ── Failed tests ────────────────────────────────────────────────────────────────
  Error ('test-abnormal.R:98:3'): count_abnormal works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal.R:98:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal.R:122:3'): count_abnormal works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df2) at test-abnormal.R:122:3
    2. └─rtables::build_table(., df2)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal.R:154:3'): count_abnormal works with default arguments and visit
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal.R:154:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_baseline.R:89:3'): count_abnormal_by_baseline works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-abnormal_by_baseline.R:89:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_baseline.R:103:3'): count_abnormal_by_baseline works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df2) at test-abnormal_by_baseline.R:103:3
    2. └─rtables::build_table(., df2)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_marked.R:242:3'): count_abnormal_by_marked works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adlb_f) at test-abnormal_by_marked.R:242:3
    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.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_worst_grade.R:60:3'): count_abnormal_by_worst_grade works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adlb_f) at test-abnormal_by_worst_grade.R:60:3
    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.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-abnormal_by_worst_grade_worsen.R:195:3'): count_abnormal_lab_worsen_by_baseline
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = tern_ex_adsl) at test-abnormal_by_worst_grade_worsen.R:195:3
    2. └─rtables::build_table(., df = df, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:292:3'): `analyze_vars` works with healthy input, default `na.rm = TRUE`.
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:292:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:307:3'): `analyze_vars` works with healthy input, and control function.
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:307:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:318:3'): `analyze_vars` works with healthy input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta_test) at test-analyze_variables.R:318:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:327:3'): `analyze_vars` works with healthy factor input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% analyze_vars(vars = "foo") %>% ... at test-analyze_variables.R:327:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:338:3'): `analyze_vars` works with healthy factor input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:338:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:362:3'): `analyze_vars` works with factors and different denominators
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─start %>% analyze_vars("RACE", denom = "n") %>% ... at test-analyze_variables.R:362:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:382:3'): analyze_vars works in demographic table example
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-analyze_variables.R:382:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:400:3'): `analyze_vars` works with character input and gives the same result as with factor
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(result <- build_table(l, dta)) at test-analyze_variables.R:400:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─rtables::build_table(l, dta)
    8.   └─rtables::update_ref_indexing(tab)
    9.     ├─formatters::make_row_df(tt)
   10.     └─rtables::make_row_df(tt)
   11.       ├─formatters::make_row_df(...)
   12.       └─rtables::make_row_df(...)
   13.         ├─formatters::pagdfrow(...)
   14.         │ └─base::data.frame(...)
   15.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.           ├─base::unlist(...)
   18.           └─base::mapply(...)
   19.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                 ├─base::unlist(...)
   23.                 └─base::vapply(...)
   24.                   ├─formatters (local) FUN(X[[i]], ...)
   25.                   └─formatters (local) FUN(X[[i]], ...)
   26.                     └─base::vapply(...)
   27.                       └─formatters (local) FUN(X[[i]], ...)
   28.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:424:3'): `analyze_vars` does not work with sparse character input due to missing statistics
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(build_table(l, dta_factor)) at test-analyze_variables.R:424: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. └─rtables::build_table(l, dta_factor)
   10.   └─rtables::update_ref_indexing(tab)
   11.     ├─formatters::make_row_df(tt)
   12.     └─rtables::make_row_df(tt)
   13.       ├─formatters::make_row_df(...)
   14.       └─rtables::make_row_df(...)
   15.         ├─formatters::pagdfrow(...)
   16.         │ └─base::data.frame(...)
   17.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.           ├─base::unlist(...)
   20.           └─base::mapply(...)
   21.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                 ├─base::unlist(...)
   25.                 └─base::vapply(...)
   26.                   ├─formatters (local) FUN(X[[i]], ...)
   27.                   └─formatters (local) FUN(X[[i]], ...)
   28.                     └─base::vapply(...)
   29.                       └─formatters (local) FUN(X[[i]], ...)
   30.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:432:3'): `analyze_vars` works with logical input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% analyze_vars(vars = "boo") %>% ... at test-analyze_variables.R:432:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:443:3'): `analyze_vars` works with healthy logical input, alternative `na.rm = FALSE`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:443:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:468:3'): `analyze_vars` works with empty named numeric variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:468:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:485:3'): analyze_vars 'na_str' argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta) at test-analyze_variables.R:485:3
    2. └─rtables::build_table(., dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_variables.R:512:3'): analyze_vars works correctly with auto formats
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dt) at test-analyze_variables.R:512:3
    2. └─rtables::build_table(., dt)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:8:3'): analyze_vars_in_cols works correctly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = adpp) at test-analyze_vars_in_cols.R:8:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:50:3'): custom labels can be set with row_labels for analyze_colvars
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adpp) at test-analyze_vars_in_cols.R:50:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:102:3'): custom labels can be set with row_labels and summarize
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adpp) at test-analyze_vars_in_cols.R:102:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:171:3'): summarize works with nested analyze
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(build_table(lyt, df = tern_ex_adpp, alt_counts_df = tern_ex_adsl)) at test-analyze_vars_in_cols.R:171: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. └─rtables::build_table(lyt, df = tern_ex_adpp, alt_counts_df = tern_ex_adsl)
   10.   └─rtables::update_ref_indexing(tab)
   11.     ├─formatters::make_row_df(tt)
   12.     └─rtables::make_row_df(tt)
   13.       ├─formatters::make_row_df(...)
   14.       └─rtables::make_row_df(...)
   15.         ├─formatters::make_row_df(...)
   16.         └─rtables::make_row_df(...)
   17.           ├─formatters::make_row_df(...)
   18.           └─rtables::make_row_df(...)
   19.             ├─formatters::pagdfrow(...)
   20.             │ └─base::data.frame(...)
   21.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.               ├─base::unlist(...)
   24.               └─base::mapply(...)
   25.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                     ├─base::unlist(...)
   29.                     └─base::vapply(...)
   30.                       ├─formatters (local) FUN(X[[i]], ...)
   31.                       └─formatters (local) FUN(X[[i]], ...)
   32.                         └─base::vapply(...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:251:3'): analyze_vars_in_cols works well with categorical data
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-analyze_vars_in_cols.R:251:3
   2.   └─rlang::cnd_signal(state$error)
  
  Error ('test-analyze_vars_in_cols.R:316:3'): analyze_vars_in_cols works with imputation rule
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = df) at test-analyze_vars_in_cols.R:316:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::make_row_df(...)
   16.                 └─rtables::make_row_df(...)
   17.                   ├─formatters::make_row_df(...)
   18.                   └─rtables::make_row_df(...)
   19.                     ├─formatters::pagdfrow(...)
   20.                     │ └─base::data.frame(...)
   21.                     ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                     └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.                       ├─base::unlist(...)
   24.                       └─base::mapply(...)
   25.                         └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                           ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                           └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                             ├─base::unlist(...)
   29.                             └─base::vapply(...)
   30.                               ├─formatters (local) FUN(X[[i]], ...)
   31.                               └─formatters (local) FUN(X[[i]], ...)
   32.                                 └─base::vapply(...)
   33.                                   └─formatters (local) FUN(X[[i]], ...)
   34.                                     └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                                       └─formatters::open_font_dev(fontspec)
  
  Error ('test-analyze_vars_in_cols.R:419:3'): analyze_vars_in_cols works with caching
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = df) at test-analyze_vars_in_cols.R:419:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::make_row_df(...)
   16.                 └─rtables::make_row_df(...)
   17.                   ├─formatters::make_row_df(...)
   18.                   └─rtables::make_row_df(...)
   19.                     ├─formatters::pagdfrow(...)
   20.                     │ └─base::data.frame(...)
   21.                     ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                     └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.                       ├─base::unlist(...)
   24.                       └─base::mapply(...)
   25.                         └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   26.                           ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                           └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                             ├─base::unlist(...)
   29.                             └─base::vapply(...)
   30.                               ├─formatters (local) FUN(X[[i]], ...)
   31.                               └─formatters (local) FUN(X[[i]], ...)
   32.                                 └─base::vapply(...)
   33.                                   └─formatters (local) FUN(X[[i]], ...)
   34.                                     └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   35.                                       └─formatters::open_font_dev(fontspec)
  
  Error ('test-compare_variables.R:97:3'): compare_vars works with default settings in rtables layout pipeline
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, tern_ex_adsl) at test-compare_variables.R:97:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-compare_variables.R:112:3'): compare_vars works with custom settings
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = tern_ex_adsl) at test-compare_variables.R:112:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-compare_variables.R:119:3'): compare_vars 'na_str' argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adsl) at test-compare_variables.R:119:3
    2. └─rtables::build_table(., tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_cumulative.R:72:3'): count_cumulative works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_cumulative.R:72:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_cumulative.R:91:3'): count_cumulative works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_cumulative.R:91:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_missed_doses.R:45:3'): count_missed_doses works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_missed_doses.R:45:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:131:3'): count_occurrences functions as expected with valid input and default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:131:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:157:3'): count_occurrences functions as expected with label row specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:157:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:166:3'): count_occurrences works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences.R:166:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:226:3'): summarize_occurrences functions as expected with valid input and default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lyt %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences.R:226:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences.R:235:3'): summarize_occurrences works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences.R:235:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:142:3'): count_occurrences_by_grade works with default arguments for intensity
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:142:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:166:3'): count_occurrences_by_grade label works when more than one variables are analyzed
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:166:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:189:3'): count_occurrences_by_grade works with custom arguments for grade
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:189:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:225:3'): summarize_occurrences_by_grade works with default arguments for intensity
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:225:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:272:3'): summarize_occurrences_by_grade works with custom arguments for grade
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:272:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:303:3'): count_occurrences_by_grade works with trim_levels_in_group split function
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df, alt_counts_df = df_adsl) at test-count_occurrences_by_grade.R:303:3
    2. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:340:3'): summarize_ and count_occurrences_by_grade works with pagination and sorting
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-count_occurrences_by_grade.R:340:3
    2. ├─rtables::sort_at_path(...)
    3. │ └─base::NROW(tt)
    4. ├─rtables::sort_at_path(...)
    5. │ └─base::NROW(tt)
    6. ├─rtables::sort_at_path(...)
    7. │ └─base::NROW(tt)
    8. └─rtables::build_table(., df, alt_counts_df = df_adsl)
    9.   └─rtables::update_ref_indexing(tab)
   10.     ├─formatters::make_row_df(tt)
   11.     └─rtables::make_row_df(tt)
   12.       ├─formatters::make_row_df(...)
   13.       └─rtables::make_row_df(...)
   14.         ├─formatters::make_row_df(...)
   15.         └─rtables::make_row_df(...)
   16.           ├─formatters::pagdfrow(...)
   17.           │ └─base::data.frame(...)
   18.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.             ├─base::unlist(...)
   21.             └─base::mapply(...)
   22.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                   ├─base::unlist(...)
   26.                   └─base::vapply(...)
   27.                     ├─formatters (local) FUN(X[[i]], ...)
   28.                     └─formatters (local) FUN(X[[i]], ...)
   29.                       └─base::vapply(...)
   30.                         └─formatters (local) FUN(X[[i]], ...)
   31.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_occurrences_by_grade.R:388:3'): count_occurrences_by_grade works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-count_occurrences_by_grade.R:388:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_events_in_cols.R:44:3'): summarize_patients_events_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_patients_events_in_cols.R:44:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_events_in_cols.R:60:3'): summarize_patients_events_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_patients_events_in_cols.R:60:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_event.R:60:3'): count_patients_with_event works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_event.R:60:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_event.R:98:3'): count_patients_with_event works as expected for different column count
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_event.R:98:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_event.R:126:3'): count_patients_with_flags works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-count_patients_with_event.R:126:3
    2. └─rtables::build_table(., tern_ex_adae, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:127:3'): count_patients_with_flags works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_flags.R:127:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:175:3'): count_patients_with_flags works as expected when specifying table_names
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = test_data, alt_counts_df = test_adsl_like) at test-count_patients_with_flags.R:175:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:214:3'): count_patients_with_flags works with label row specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adae_local, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:214:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::pagdfrow(...)
   10.           │ └─base::data.frame(...)
   11.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.             ├─base::unlist(...)
   14.             └─base::mapply(...)
   15.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                   ├─base::unlist(...)
   19.                   └─base::vapply(...)
   20.                     ├─formatters (local) FUN(X[[i]], ...)
   21.                     └─formatters (local) FUN(X[[i]], ...)
   22.                       └─base::vapply(...)
   23.                         └─formatters (local) FUN(X[[i]], ...)
   24.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:240:3'): count_patients_with_flags custom variable label behaviour works with var_labels specified
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = adae_local, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:240:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_patients_with_flags.R:310:3'): count_patients_with_flags works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adae, alt_counts_df = tern_ex_adsl) at test-count_patients_with_flags.R:310:3
    2. └─rtables::build_table(., adae, alt_counts_df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_values.R:59:3'): count_values works as expected with a single value
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-count_values.R:59:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_values.R:73:3'): count_values works as expected with multiple values and variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-count_values.R:73:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-count_values.R:110:3'): count_values works as expected with multiple values and variables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% count_values("x", values = TRUE) %>% ... at test-count_values.R:110:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_incidence_rate.R:94:3'): estimate_incidence_rate works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-estimate_incidence_rate.R:94:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_multinom_rsp.R:45:3'): estimate_multinomial_response returns right result
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt = lyt, df = dta_test) at test-estimate_multinom_rsp.R:45:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_proportion.R:267:3'): `estimate_proportion` is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-estimate_proportion.R:267:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_proportion.R:291:3'): `estimate_proportion` and strat_wilson is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-estimate_proportion.R:291:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─... %>% build_table(anl)
    4. └─rtables::build_table(., anl)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::pagdfrow(...)
   11.         │ └─base::data.frame(...)
   12.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.           ├─base::unlist(...)
   15.           └─base::mapply(...)
   16.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                 ├─base::unlist(...)
   20.                 └─base::vapply(...)
   21.                   ├─formatters (local) FUN(X[[i]], ...)
   22.                   └─formatters (local) FUN(X[[i]], ...)
   23.                     └─base::vapply(...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-estimate_proportion.R:322:5'): `estimate_proportion` and strat_wilson with equal weights and specific number of interactions works with `rtables`
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'obj' in selecting a method for function 'get_formatted_cells': argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% get_formatted_cells() at test-estimate_proportion.R:322:5
    2. ├─rtables::get_formatted_cells(.)
    3. ├─rtables::build_table(., anl)
    4. │ └─rtables::update_ref_indexing(tab)
    5. │   ├─formatters::make_row_df(tt)
    6. │   └─rtables::make_row_df(tt)
    7. │     ├─formatters::make_row_df(...)
    8. │     └─rtables::make_row_df(...)
    9. │       ├─formatters::pagdfrow(...)
   10. │       │ └─base::data.frame(...)
   11. │       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12. │       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13. │         ├─base::unlist(...)
   14. │         └─base::mapply(...)
   15. │           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16. │             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17. │             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18. │               ├─base::unlist(...)
   19. │               └─base::vapply(...)
   20. │                 ├─formatters (local) FUN(X[[i]], ...)
   21. │                 └─formatters (local) FUN(X[[i]], ...)
   22. │                   └─base::vapply(...)
   23. │                     └─formatters (local) FUN(X[[i]], ...)
   24. │                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25. │                         └─formatters::open_font_dev(fontspec)
   26. └─base::.handleSimpleError(...)
   27.   └─base (local) h(simpleError(msg, call))
  
  Error ('test-formatting_functions.R:242:3'): auto formatting works with NA values
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-formatting_functions.R:242: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. ├─... %>% build_table(dt)
   10. └─rtables::build_table(., dt)
   11.   └─rtables::update_ref_indexing(tab)
   12.     ├─formatters::make_row_df(tt)
   13.     └─rtables::make_row_df(tt)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::pagdfrow(...)
   17.         │ └─base::data.frame(...)
   18.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.           ├─base::unlist(...)
   21.           └─base::mapply(...)
   22.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                 ├─base::unlist(...)
   26.                 └─base::vapply(...)
   27.                   ├─formatters (local) FUN(X[[i]], ...)
   28.                   └─formatters (local) FUN(X[[i]], ...)
   29.                     └─base::vapply(...)
   30.                       └─formatters (local) FUN(X[[i]], ...)
   31.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:18:3'): g_forest default plot works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:18:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:48:3'): g_forest works with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-g_forest.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. └─tern::g_forest(...)
   10.   ├─formatters::matrix_form(tbl)
   11.   └─rtables::matrix_form(tbl)
   12.     ├─formatters::make_row_df(obj)
   13.     └─rtables::make_row_df(obj)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::pagdfrow(...)
   17.         │ └─base::data.frame(...)
   18.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.           ├─base::unlist(...)
   21.           └─base::mapply(...)
   22.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                 ├─base::unlist(...)
   26.                 └─base::vapply(...)
   27.                   ├─formatters (local) FUN(X[[i]], ...)
   28.                   └─formatters (local) FUN(X[[i]], ...)
   29.                     └─base::vapply(...)
   30.                       └─formatters (local) FUN(X[[i]], ...)
   31.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:91:3'): g_forest as_list argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:91:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:103:3'): g_forest argument deprecation warnings work
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-g_forest.R:103:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:144:3'): forest_grob works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(...) at test-g_forest.R:144:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─lifecycle::expect_deprecated(...)
    9. │ └─testthat::expect_warning(...)
   10. │   └─testthat:::expect_condition_matching(...)
   11. │     └─testthat:::quasi_capture(...)
   12. │       ├─testthat (local) .capture(...)
   13. │       │ └─base::withCallingHandlers(...)
   14. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15. ├─lifecycle::expect_deprecated(...)
   16. │ └─testthat::expect_warning(...)
   17. │   └─testthat:::expect_condition_matching(...)
   18. │     └─testthat:::quasi_capture(...)
   19. │       ├─testthat (local) .capture(...)
   20. │       │ └─base::withCallingHandlers(...)
   21. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   22. ├─lifecycle::expect_deprecated(...)
   23. │ └─testthat::expect_warning(...)
   24. │   └─testthat:::expect_condition_matching(...)
   25. │     └─testthat:::quasi_capture(...)
   26. │       ├─testthat (local) .capture(...)
   27. │       │ └─base::withCallingHandlers(...)
   28. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   29. ├─lifecycle::expect_deprecated(...)
   30. │ └─testthat::expect_warning(...)
   31. │   └─testthat:::expect_condition_matching(...)
   32. │     └─testthat:::quasi_capture(...)
   33. │       ├─testthat (local) .capture(...)
   34. │       │ └─base::withCallingHandlers(...)
   35. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   36. ├─lifecycle::expect_deprecated(...)
   37. │ └─testthat::expect_warning(...)
   38. │   └─testthat:::expect_condition_matching(...)
   39. │     └─testthat:::quasi_capture(...)
   40. │       ├─testthat (local) .capture(...)
   41. │       │ └─base::withCallingHandlers(...)
   42. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   43. ├─lifecycle::expect_deprecated(...)
   44. │ └─testthat::expect_warning(...)
   45. │   └─testthat:::expect_condition_matching(...)
   46. │     └─testthat:::quasi_capture(...)
   47. │       ├─testthat (local) .capture(...)
   48. │       │ └─base::withCallingHandlers(...)
   49. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   50. └─tern:::forest_grob(...)
   51.   ├─formatters::matrix_form(tbl)
   52.   └─rtables::matrix_form(tbl)
   53.     ├─formatters::make_row_df(obj)
   54.     └─rtables::make_row_df(obj)
   55.       ├─formatters::make_row_df(...)
   56.       └─rtables::make_row_df(...)
   57.         ├─formatters::pagdfrow(...)
   58.         │ └─base::data.frame(...)
   59.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   60.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   61.           ├─base::unlist(...)
   62.           └─base::mapply(...)
   63.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   64.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   65.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   66.                 ├─base::unlist(...)
   67.                 └─base::vapply(...)
   68.                   ├─formatters (local) FUN(X[[i]], ...)
   69.                   └─formatters (local) FUN(X[[i]], ...)
   70.                     └─base::vapply(...)
   71.                       └─formatters (local) FUN(X[[i]], ...)
   72.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   73.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-g_forest.R:176:3'): forest_viewport works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─lifecycle::expect_deprecated(lifecycle::expect_deprecated(lifecycle::expect_deprecated(v <- forest_viewport(tbl)))) at test-g_forest.R:176:3
    2. │ └─testthat::expect_warning(...)
    3. │   └─testthat:::expect_condition_matching(...)
    4. │     └─testthat:::quasi_capture(...)
    5. │       ├─testthat (local) .capture(...)
    6. │       │ └─base::withCallingHandlers(...)
    7. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─lifecycle::expect_deprecated(lifecycle::expect_deprecated(v <- forest_viewport(tbl)))
    9. │ └─testthat::expect_warning(...)
   10. │   └─testthat:::expect_condition_matching(...)
   11. │     └─testthat:::quasi_capture(...)
   12. │       ├─testthat (local) .capture(...)
   13. │       │ └─base::withCallingHandlers(...)
   14. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   15. ├─lifecycle::expect_deprecated(v <- forest_viewport(tbl))
   16. │ └─testthat::expect_warning(...)
   17. │   └─testthat:::expect_condition_matching(...)
   18. │     └─testthat:::quasi_capture(...)
   19. │       ├─testthat (local) .capture(...)
   20. │       │ └─base::withCallingHandlers(...)
   21. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   22. └─tern::forest_viewport(tbl)
   23.   ├─formatters::matrix_form(tbl)
   24.   └─rtables::matrix_form(tbl)
   25.     ├─formatters::make_row_df(obj)
   26.     └─rtables::make_row_df(obj)
   27.       ├─formatters::make_row_df(...)
   28.       └─rtables::make_row_df(...)
   29.         ├─formatters::pagdfrow(...)
   30.         │ └─base::data.frame(...)
   31.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   32.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   33.           ├─base::unlist(...)
   34.           └─base::mapply(...)
   35.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   36.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   37.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   38.                 ├─base::unlist(...)
   39.                 └─base::vapply(...)
   40.                   ├─formatters (local) FUN(X[[i]], ...)
   41.                   └─formatters (local) FUN(X[[i]], ...)
   42.                     └─base::vapply(...)
   43.                       └─formatters (local) FUN(X[[i]], ...)
   44.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   45.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-h_response_biomarkers_subgroups.R:113:3'): h_tab_rsp_one_biomarker works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-h_response_biomarkers_subgroups.R:113: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. └─tern::h_tab_rsp_one_biomarker(...)
   10.   └─tern::h_tab_one_biomarker(...)
   11.     └─rtables::build_table(lyt, df = df)
   12.       └─rtables::update_ref_indexing(tab)
   13.         ├─formatters::make_row_df(tt)
   14.         └─rtables::make_row_df(tt)
   15.           ├─formatters::make_row_df(...)
   16.           └─rtables::make_row_df(...)
   17.             ├─formatters::make_row_df(...)
   18.             └─rtables::make_row_df(...)
   19.               ├─formatters::make_row_df(...)
   20.               └─rtables::make_row_df(...)
   21.                 ├─formatters::pagdfrow(...)
   22.                 │ └─base::data.frame(...)
   23.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   25.                   ├─base::unlist(...)
   26.                   └─base::mapply(...)
   27.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   28.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   30.                         ├─base::unlist(...)
   31.                         └─base::vapply(...)
   32.                           ├─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─base::vapply(...)
   35.                               └─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   37.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-h_survival_biomarkers_subgroups.R:96:3'): h_tab_surv_one_biomarker works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-h_survival_biomarkers_subgroups.R:96: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. └─tern::h_tab_surv_one_biomarker(...)
   10.   └─tern::h_tab_one_biomarker(...)
   11.     └─rtables::build_table(lyt, df = df)
   12.       └─rtables::update_ref_indexing(tab)
   13.         ├─formatters::make_row_df(tt)
   14.         └─rtables::make_row_df(tt)
   15.           ├─formatters::make_row_df(...)
   16.           └─rtables::make_row_df(...)
   17.             ├─formatters::make_row_df(...)
   18.             └─rtables::make_row_df(...)
   19.               ├─formatters::make_row_df(...)
   20.               └─rtables::make_row_df(...)
   21.                 ├─formatters::pagdfrow(...)
   22.                 │ └─base::data.frame(...)
   23.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   25.                   ├─base::unlist(...)
   26.                   └─base::mapply(...)
   27.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   28.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   30.                         ├─base::unlist(...)
   31.                         └─base::vapply(...)
   32.                           ├─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters (local) FUN(X[[i]], ...)
   34.                             └─base::vapply(...)
   35.                               └─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   37.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:178:3'): logistic_regression_cols works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% ... at test-logistic_regression.R:178:3
    2. └─rtables::build_table(...)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[2L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:224:3'): summarize_logistic works as expected for interaction model with continuous variable
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:224:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:248:3'): summarize_logistic works as expected for interaction model with categorical variable
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:248:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-logistic_regression.R:268:3'): summarize_logistic works as expected for simple model without interactions
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-logistic_regression.R:268:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-make_afun.R:208:3'): make_afun by default removes results from `.in_ref_col`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-make_afun.R:208:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-odds_ratio.R:118:3'): estimate_odds_ratio estimates right OR and CI (unstratified analysis)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = data) at test-odds_ratio.R:118:3
    2. └─rtables::build_table(., df = data)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-odds_ratio.R:136:3'): estimate_odds_ratio estimates right OR and CI (stratified analysis)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-odds_ratio.R:136:3
    2. │ └─base::force(code)
    3. ├─... %>% build_table(df = data)
    4. └─rtables::build_table(., df = data)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::pagdfrow(...)
   11.         │ └─base::data.frame(...)
   12.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.           ├─base::unlist(...)
   15.           └─base::mapply(...)
   16.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                 ├─base::unlist(...)
   20.                 └─base::vapply(...)
   21.                   ├─formatters (local) FUN(X[[i]], ...)
   22.                   └─formatters (local) FUN(X[[i]], ...)
   23.                     └─base::vapply(...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-odds_ratio.R:174:3'): estimate_odds_ratio works with strata and combined groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─withr::with_options(...) at test-odds_ratio.R:174:3
    2. │ └─base::force(code)
    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.       ├─formatters::make_row_df(...)
    8.       └─rtables::make_row_df(...)
    9.         ├─formatters::pagdfrow(...)
   10.         │ └─base::data.frame(...)
   11.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           ├─base::unlist(...)
   14.           └─base::mapply(...)
   15.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   16.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 ├─base::unlist(...)
   19.                 └─base::vapply(...)
   20.                   ├─formatters (local) FUN(X[[i]], ...)
   21.                   └─formatters (local) FUN(X[[i]], ...)
   22.                     └─base::vapply(...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   25.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prop_diff.R:243:3'): `estimate_proportion_diff` is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:243:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prop_diff.R:269:3'): `estimate_proportion_diff` and cmh is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:269:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prop_diff.R:298:3'): `estimate_proportion_diff` and strat_newcombe is compatible with `rtables`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, df = dta) at test-prop_diff.R:298:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-prune_occurrences.R:2:1'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-prune_occurrences.R:2:1
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:100:3'): tabulate_rsp_biomarkers works as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df) at test-response_biomarkers_subgroups.R:100:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:119:3'): tabulate_rsp_biomarkers functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df) at test-response_biomarkers_subgroups.R:119:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::pagdfrow(...)
   17.                       │ └─base::data.frame(...)
   18.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                         ├─base::unlist(...)
   21.                         └─base::mapply(...)
   22.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                               ├─base::unlist(...)
   26.                               └─base::vapply(...)
   27.                                 ├─formatters (local) FUN(X[[i]], ...)
   28.                                 └─formatters (local) FUN(X[[i]], ...)
   29.                                   └─base::vapply(...)
   30.                                     └─formatters (local) FUN(X[[i]], ...)
   31.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:143:3'): tabulate_rsp_biomarkers works with only a single biomarker in the data frame
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(tabulate_rsp_biomarkers(df1)) at test-response_biomarkers_subgroups.R:143: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. └─tern::tabulate_rsp_biomarkers(df1)
   10.   └─base::lapply(...)
   11.     └─tern (local) FUN(X[[i]], ...)
   12.       └─tern::h_tab_rsp_one_biomarker(...)
   13.         └─tern::h_tab_one_biomarker(...)
   14.           └─rtables::build_table(lyt, df = df)
   15.             └─rtables::update_ref_indexing(tab)
   16.               ├─formatters::make_row_df(tt)
   17.               └─rtables::make_row_df(tt)
   18.                 ├─formatters::make_row_df(...)
   19.                 └─rtables::make_row_df(...)
   20.                   ├─formatters::make_row_df(...)
   21.                   └─rtables::make_row_df(...)
   22.                     ├─formatters::make_row_df(...)
   23.                     └─rtables::make_row_df(...)
   24.                       ├─formatters::pagdfrow(...)
   25.                       │ └─base::data.frame(...)
   26.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   27.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   28.                         ├─base::unlist(...)
   29.                         └─base::mapply(...)
   30.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   31.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   32.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   33.                               ├─base::unlist(...)
   34.                               └─base::vapply(...)
   35.                                 ├─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters (local) FUN(X[[i]], ...)
   37.                                   └─base::vapply(...)
   38.                                     └─formatters (local) FUN(X[[i]], ...)
   39.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   40.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_biomarkers_subgroups.R:162:3'): tabulate_rsp_biomarkers na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_rsp_biomarkers(df, na_str = "<No data>") at test-response_biomarkers_subgroups.R:162:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_rsp_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:98:3'): a_response_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-response_subgroups.R:98:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:117:3'): tabulate_rsp_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:117:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:138:3'): tabulate_rsp_subgroups correctly calculates column indices
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:138:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:183:3'): tabulate_rsp_subgroups functions as expected with valid input extreme values in OR table
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% tabulate_rsp_subgroups(df) at test-response_subgroups.R:183:3
    2. └─tern::tabulate_rsp_subgroups(., df)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:200:3'): tabulate_rsp_subgroups functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:200:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::pagdfrow(...)
   14.               │ └─base::data.frame(...)
   15.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.                 ├─base::unlist(...)
   18.                 └─base::mapply(...)
   19.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                       ├─base::unlist(...)
   23.                       └─base::vapply(...)
   24.                         ├─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters (local) FUN(X[[i]], ...)
   26.                           └─base::vapply(...)
   27.                             └─formatters (local) FUN(X[[i]], ...)
   28.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:220:3'): tabulate_rsp_subgroups functions as expected when 0 obs in one arm
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:220:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-response_subgroups.R:254:3'): tabulate_rsp_subgroups na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-response_subgroups.R:254:3
    2. └─tern::tabulate_rsp_subgroups(...)
    3.   └─rtables::build_table(lyt_prop, df = df$prop)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-rtables_access.R:1:1'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-rtables_access.R:1:1
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::make_row_df(...)
   15.               └─rtables::make_row_df(...)
   16.                 ├─formatters::pagdfrow(...)
   17.                 │ └─base::data.frame(...)
   18.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                   ├─base::unlist(...)
   21.                   └─base::mapply(...)
   22.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                         ├─base::unlist(...)
   26.                         └─base::vapply(...)
   27.                           ├─formatters (local) FUN(X[[i]], ...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─base::vapply(...)
   30.                               └─formatters (local) FUN(X[[i]], ...)
   31.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-score_occurrences.R:52:3'): (code run outside of `test_that()`)
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─base::eval(...)
    2. │ └─base::eval(...)
    3. │   ├─... %>% prune_table() at test-score_occurrences.R:52:3
    4. │   └─rtables::build_table(lyt, dfae, alt_counts_df = attr(dfae, "dfsl"))
    5. │     └─rtables::update_ref_indexing(tab)
    6. │       ├─formatters::make_row_df(tt)
    7. │       └─rtables::make_row_df(tt)
    8. │         ├─formatters::make_row_df(...)
    9. │         └─rtables::make_row_df(...)
   10. │           ├─formatters::make_row_df(...)
   11. │           └─rtables::make_row_df(...)
   12. │             ├─formatters::pagdfrow(...)
   13. │             │ └─base::data.frame(...)
   14. │             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15. │             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16. │               ├─base::unlist(...)
   17. │               └─base::mapply(...)
   18. │                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19. │                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20. │                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21. │                     ├─base::unlist(...)
   22. │                     └─base::vapply(...)
   23. │                       ├─formatters (local) FUN(X[[i]], ...)
   24. │                       └─formatters (local) FUN(X[[i]], ...)
   25. │                         └─base::vapply(...)
   26. │                           └─formatters (local) FUN(X[[i]], ...)
   27. │                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28. │                               └─formatters::open_font_dev(fontspec)
   29. └─rtables::prune_table(.)
   30.   └─methods::is(tt, "TableRow")
  
  Error ('test-split_cols_by_groups.R:61:3'): split_cols_by_groups manages combinations of columns
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:61:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:76:3'): split_cols_by_groups manages combinations of columns with reference
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:76:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:95:3'): split_cols_by_groups equivalent to split_cols_by when no groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:95:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:113:3'): split_cols_by_groups equivalent to split_cols_by with ref_col but no groups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-split_cols_by_groups.R:113:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-split_cols_by_groups.R:131:3'): split_cols_by_groups manages combinations of columns with reference and alt_counts_df
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM_ANL, alt_counts_df = DM) at test-split_cols_by_groups.R:131:3
    2. └─rtables::build_table(., DM_ANL, alt_counts_df = DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_ancova.R:89:3'): summarize_ancova works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-summarize_ancova.R:89:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_ancova.R:120:3'): summarize_ancova works with interaction
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris_new) at test-summarize_ancova.R:120:3
    2. └─rtables::build_table(., iris_new)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_ancova.R:180:3'): summarize_ancova works with irregular arm levels
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adrs_single, alt_counts_df = adsl) at test-summarize_ancova.R:180:3
    2. └─rtables::build_table(., adrs_single, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_change.R:72:3'): summarize_change works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(dta_test) at test-summarize_change.R:72:3
    2. └─rtables::build_table(., dta_test)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_colvars.R:25:3'): summarize_colvars works as expected without column split and default behavior
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:25:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_colvars.R:40:3'): summarize_colvars works as expected with column split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:40:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_colvars.R:60:3'): summarize_colvars works when selecting statistics and custom formatting
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(l, dta) at test-summarize_colvars.R:60:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:82:3'): summarize_coxreg adds the univariate Cox regression layer to rtables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:82:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:123:3'): summarize_coxreg .section_div argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:123:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:137:3'): summarize_coxreg works with interactions in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:137:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:151:3'): summarize_coxreg 'at' argument works in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:151:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:164:3'): summarize_coxreg `na_str` argument works
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:164:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:177:3'): summarize_coxreg works without treatment arm in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:177:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:191:3'): summarize_coxreg works with numeric covariate without treatment arm in univariate case
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:191:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:207:3'): summarize_coxreg works with character covariate in univariate case when interaction = TRUE
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:207:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:235:3'): summarize_coxreg adds the multivariate Cox regression layer to rtables
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta_bladder) at test-summarize_coxreg.R:235:3
    2. └─rtables::build_table(., df = dta_bladder)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::make_row_df(...)
   13.             └─rtables::make_row_df(...)
   14.               ├─formatters::pagdfrow(...)
   15.               │ └─base::data.frame(...)
   16.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 ├─base::unlist(...)
   19.                 └─base::mapply(...)
   20.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       ├─base::unlist(...)
   24.                       └─base::vapply(...)
   25.                         ├─formatters (local) FUN(X[[i]], ...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─base::vapply(...)
   28.                             └─formatters (local) FUN(X[[i]], ...)
   29.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_coxreg.R:274:3'): warning/error messages work
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-summarize_coxreg.R:274:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─... %>% build_table(df = dta_bladder)
    8. └─rtables::build_table(., df = dta_bladder)
    9.   └─rtables::update_ref_indexing(tab)
   10.     ├─formatters::make_row_df(tt)
   11.     └─rtables::make_row_df(tt)
   12.       ├─formatters::make_row_df(...)
   13.       └─rtables::make_row_df(...)
   14.         ├─formatters::make_row_df(...)
   15.         └─rtables::make_row_df(...)
   16.           ├─formatters::make_row_df(...)
   17.           └─rtables::make_row_df(...)
   18.             ├─formatters::make_row_df(...)
   19.             └─rtables::make_row_df(...)
   20.               ├─formatters::pagdfrow(...)
   21.               │ └─base::data.frame(...)
   22.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   23.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   24.                 ├─base::unlist(...)
   25.                 └─base::mapply(...)
   26.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   27.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   28.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   29.                       ├─base::unlist(...)
   30.                       └─base::vapply(...)
   31.                         ├─formatters (local) FUN(X[[i]], ...)
   32.                         └─formatters (local) FUN(X[[i]], ...)
   33.                           └─base::vapply(...)
   34.                             └─formatters (local) FUN(X[[i]], ...)
   35.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   36.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_glm_count.R:413:3'): summarize_glm_count works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-summarize_glm_count.R:413:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_glm_count.R:444:3'): summarize_glm_count (negative binomial) works with healthy inputs
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-summarize_glm_count.R:444:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:44:3'): summarize_num_patients works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:44:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:152:3'): summarize_num_patients with count_by works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:152:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:202:5'): summarize_num_patients with count_by different combinations works as expected with healthy input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-summarize_num_patients.R:202:5
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:223:3'): analyze_num_patients works well for pagination
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-summarize_num_patients.R:223:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., df)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::pagdfrow(...)
   13.           │ └─base::data.frame(...)
   14.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.             ├─base::unlist(...)
   17.             └─base::mapply(...)
   18.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                   ├─base::unlist(...)
   22.                   └─base::vapply(...)
   23.                     ├─formatters (local) FUN(X[[i]], ...)
   24.                     └─formatters (local) FUN(X[[i]], ...)
   25.                       └─base::vapply(...)
   26.                         └─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:262:3'): summarize_num_patients works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-summarize_num_patients.R:262:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_num_patients.R:291:3'): analyze_num_patients works as expected with risk difference column
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adae) at test-summarize_num_patients.R:291:3
    2. └─rtables::build_table(., tern_ex_adae)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:42:3'): summarize_patients_exposure_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:42:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:56:3'): summarize_patients_exposure_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:56:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:81:5'): summarize_patients_exposure_in_cols returns correct column label when no variable split and only one statistic
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:81:5
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:103:3'): analyze_patients_exposure_in_cols works well with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:103:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:116:3'): analyze_patients_exposure_in_cols works well with custom arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:116:3
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:135:5'): analyze_patients_exposure_in_cols works with no variable split and only one statistic
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = df, alt_counts_df = adsl) at test-summarize_patients_exposure_in_cols.R:135:5
    2. └─rtables::build_table(., df = df, alt_counts_df = adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-summarize_patients_exposure_in_cols.R:163:3'): patients_exposure_in_cols works with totals after the row split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, anl_local) at test-summarize_patients_exposure_in_cols.R:163:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:82:3'): tabulate_survival_biomarkers works as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(df, time_unit = as.character(adtte_f$AVALU[1])) at test-survival_biomarkers_subgroups.R:82:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:102:3'): tabulate_survival_biomarkers functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(df, time_unit = as.character(adtte_f$AVALU[1])) at test-survival_biomarkers_subgroups.R:102:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::pagdfrow(...)
   17.                       │ └─base::data.frame(...)
   18.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   20.                         ├─base::unlist(...)
   21.                         └─base::mapply(...)
   22.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   23.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   25.                               ├─base::unlist(...)
   26.                               └─base::vapply(...)
   27.                                 ├─formatters (local) FUN(X[[i]], ...)
   28.                                 └─formatters (local) FUN(X[[i]], ...)
   29.                                   └─base::vapply(...)
   30.                                     └─formatters (local) FUN(X[[i]], ...)
   31.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   32.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:126:3'): tabulate_survival_biomarkers works with only a single biomarker in the data frame
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(tabulate_survival_biomarkers(df1)) at test-survival_biomarkers_subgroups.R:126: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. └─tern::tabulate_survival_biomarkers(df1)
   10.   └─base::lapply(...)
   11.     └─tern (local) FUN(X[[i]], ...)
   12.       └─tern::h_tab_surv_one_biomarker(...)
   13.         └─tern::h_tab_one_biomarker(...)
   14.           └─rtables::build_table(lyt, df = df)
   15.             └─rtables::update_ref_indexing(tab)
   16.               ├─formatters::make_row_df(tt)
   17.               └─rtables::make_row_df(tt)
   18.                 ├─formatters::make_row_df(...)
   19.                 └─rtables::make_row_df(...)
   20.                   ├─formatters::make_row_df(...)
   21.                   └─rtables::make_row_df(...)
   22.                     ├─formatters::make_row_df(...)
   23.                     └─rtables::make_row_df(...)
   24.                       ├─formatters::pagdfrow(...)
   25.                       │ └─base::data.frame(...)
   26.                       ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   27.                       └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   28.                         ├─base::unlist(...)
   29.                         └─base::mapply(...)
   30.                           └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   31.                             ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   32.                             └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   33.                               ├─base::unlist(...)
   34.                               └─base::vapply(...)
   35.                                 ├─formatters (local) FUN(X[[i]], ...)
   36.                                 └─formatters (local) FUN(X[[i]], ...)
   37.                                   └─base::vapply(...)
   38.                                     └─formatters (local) FUN(X[[i]], ...)
   39.                                       └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   40.                                         └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_biomarkers_subgroups.R:146:3'): tabulate_survival_biomarkers na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─tern::tabulate_survival_biomarkers(...) at test-survival_biomarkers_subgroups.R:146:3
    2.   └─base::lapply(...)
    3.     └─tern (local) FUN(X[[i]], ...)
    4.       └─tern::h_tab_surv_one_biomarker(...)
    5.         └─tern::h_tab_one_biomarker(...)
    6.           └─rtables::build_table(lyt, df = df)
    7.             └─rtables::update_ref_indexing(tab)
    8.               ├─formatters::make_row_df(tt)
    9.               └─rtables::make_row_df(tt)
   10.                 ├─formatters::make_row_df(...)
   11.                 └─rtables::make_row_df(...)
   12.                   ├─formatters::make_row_df(...)
   13.                   └─rtables::make_row_df(...)
   14.                     ├─formatters::make_row_df(...)
   15.                     └─rtables::make_row_df(...)
   16.                       ├─formatters::make_row_df(...)
   17.                       └─rtables::make_row_df(...)
   18.                         ├─formatters::pagdfrow(...)
   19.                         │ └─base::data.frame(...)
   20.                         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                           ├─base::unlist(...)
   23.                           └─base::mapply(...)
   24.                             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                                 ├─base::unlist(...)
   28.                                 └─base::vapply(...)
   29.                                   ├─formatters (local) FUN(X[[i]], ...)
   30.                                   └─formatters (local) FUN(X[[i]], ...)
   31.                                     └─base::vapply(...)
   32.                                       └─formatters (local) FUN(X[[i]], ...)
   33.                                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:88:3'): coxph_pairwise works with default arguments and no stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:88:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:110:3'): coxph_pairwise works with customized arguments and no stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:110:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:133:3'): coxph_pairwise works with default arguments and stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:133:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_coxph_pairwise.R:155:3'): coxph_pairwise works with customized arguments and stratification factors
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_coxph_pairwise.R:155:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:81:3'): a_survival_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df) at test-survival_duration_subgroups.R:81:3
    2. └─rtables::build_table(., df)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:98:3'): tabulate_survival_subgroups functions as expected with valid input
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:98:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:113:3'): tabulate_survival_subgroups functions as expected with NULL subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:113:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::pagdfrow(...)
   14.               │ └─base::data.frame(...)
   15.               ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.                 ├─base::unlist(...)
   18.                 └─base::mapply(...)
   19.                   └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   20.                     ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                       ├─base::unlist(...)
   23.                       └─base::vapply(...)
   24.                         ├─formatters (local) FUN(X[[i]], ...)
   25.                         └─formatters (local) FUN(X[[i]], ...)
   26.                           └─base::vapply(...)
   27.                             └─formatters (local) FUN(X[[i]], ...)
   28.                               └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   29.                                 └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:130:3'): tabulate_survival_subgroups functions as expected with extreme values in subgroups
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:130:3
    2. └─tern::tabulate_survival_subgroups(., df, time_unit = adtte$AVALU[1])
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:145:3'): tabulate_survival_subgroups functions as expected when one arm has 0 records
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:145:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:165:3'): tabulate_survival_subgroups works correctly with both `n_tot` and `n_tot_events` in `vars`
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:165:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_hr, df = df$hr)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_duration_subgroups.R:222:3'): tabulate_survival_subgroups na_str argument works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─basic_table() %>% ... at test-survival_duration_subgroups.R:222:3
    2. └─tern::tabulate_survival_subgroups(...)
    3.   └─rtables::build_table(lyt_survtime, df = df$survtime)
    4.     └─rtables::update_ref_indexing(tab)
    5.       ├─formatters::make_row_df(tt)
    6.       └─rtables::make_row_df(tt)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::make_row_df(...)
   12.             └─rtables::make_row_df(...)
   13.               ├─formatters::make_row_df(...)
   14.               └─rtables::make_row_df(...)
   15.                 ├─formatters::pagdfrow(...)
   16.                 │ └─base::data.frame(...)
   17.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   19.                   ├─base::unlist(...)
   20.                   └─base::mapply(...)
   21.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   22.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   24.                         ├─base::unlist(...)
   25.                         └─base::vapply(...)
   26.                           ├─formatters (local) FUN(X[[i]], ...)
   27.                           └─formatters (local) FUN(X[[i]], ...)
   28.                             └─base::vapply(...)
   29.                               └─formatters (local) FUN(X[[i]], ...)
   30.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   31.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_time.R:94:3'): surv_time works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:94:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_time.R:117:3'): surv_time works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:117:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_time.R:144:3'): surv_time works with referential footnotes
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_time.R:144:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:72:3'): surv_timepoint works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:72:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:97:3'): surv_timepoint works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:97:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:173:3'): surv_timepoint for survival diff works with default arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:173:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:199:3'): surv_timepoint for survival diff works with customized arguments
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = adtte_f) at test-survival_timepoint.R:199:3
    2. └─rtables::build_table(., df = adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-survival_timepoint.R:225:3'): surv_timepoint works with method = both
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-survival_timepoint.R:225: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. ├─... %>% build_table(df = adtte_f)
   10. └─rtables::build_table(., df = adtte_f)
   11.   └─rtables::update_ref_indexing(tab)
   12.     ├─formatters::make_row_df(tt)
   13.     └─rtables::make_row_df(tt)
   14.       ├─formatters::make_row_df(...)
   15.       └─rtables::make_row_df(...)
   16.         ├─formatters::make_row_df(...)
   17.         └─rtables::make_row_df(...)
   18.           ├─formatters::pagdfrow(...)
   19.           │ └─base::data.frame(...)
   20.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.             ├─base::unlist(...)
   23.             └─base::mapply(...)
   24.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                   ├─base::unlist(...)
   28.                   └─base::vapply(...)
   29.                     ├─formatters (local) FUN(X[[i]], ...)
   30.                     └─formatters (local) FUN(X[[i]], ...)
   31.                       └─base::vapply(...)
   32.                         └─formatters (local) FUN(X[[i]], ...)
   33.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:124:3'): test_proportion_diff returns right result
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:124:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:142:3'): test_proportion_diff edge case: all responder by chisq
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:142:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:160:3'): test_proportion_diff edge case: all responder by schouten
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:160:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:178:3'): test_proportion_diff edge case: all responder by fisher
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:178:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-test_proportion_diff.R:199:3'): test_proportion_diff edge case: all responder by CMH
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = dta) at test-test_proportion_diff.R:199:3
    2. └─rtables::build_table(., df = dta)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_ggplot.R:15:3'): rtable2gg works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = dta) at test-utils_ggplot.R:15:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_ggplot.R:50:3'): rtable2gg works with multiple column splits
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, df = dta2) at test-utils_ggplot.R:50:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::pagdfrow(...)
    8.         │ └─base::data.frame(...)
    9.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   10.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.           ├─base::unlist(...)
   12.           └─base::mapply(...)
   13.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   14.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   15.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.                 ├─base::unlist(...)
   17.                 └─base::vapply(...)
   18.                   ├─formatters (local) FUN(X[[i]], ...)
   19.                   └─formatters (local) FUN(X[[i]], ...)
   20.                     └─base::vapply(...)
   21.                       └─formatters (local) FUN(X[[i]], ...)
   22.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   23.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:2:3'): to_string_matrix works correctly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:2:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::make_row_df(...)
   15.             └─rtables::make_row_df(...)
   16.               ├─formatters::make_row_df(...)
   17.               └─rtables::make_row_df(...)
   18.                 ├─formatters::pagdfrow(...)
   19.                 │ └─base::data.frame(...)
   20.                 ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   21.                 └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   22.                   ├─base::unlist(...)
   23.                   └─base::mapply(...)
   24.                     └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   25.                       ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   26.                       └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   27.                         ├─base::unlist(...)
   28.                         └─base::vapply(...)
   29.                           ├─formatters (local) FUN(X[[i]], ...)
   30.                           └─formatters (local) FUN(X[[i]], ...)
   31.                             └─base::vapply(...)
   32.                               └─formatters (local) FUN(X[[i]], ...)
   33.                                 └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   34.                                   └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:98:3'): add_rowcounts works with one row split
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-utils_rtables.R:98:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:108:3'): add_rowcounts works with multiple column and row splits
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(DM) at test-utils_rtables.R:108:3
    2. └─rtables::build_table(., DM)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:123:3'): add_rowcounts works with pruning
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:123:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::pagdfrow(...)
   15.             │ └─base::data.frame(...)
   16.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.               ├─base::unlist(...)
   19.               └─base::mapply(...)
   20.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                     ├─base::unlist(...)
   24.                     └─base::vapply(...)
   25.                       ├─formatters (local) FUN(X[[i]], ...)
   26.                       └─formatters (local) FUN(X[[i]], ...)
   27.                         └─base::vapply(...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:150:3'): add_rowcounts works with alt_counts = TRUE
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% prune_table() at test-utils_rtables.R:150:3
    2. ├─rtables::prune_table(.)
    3. │ └─methods::is(tt, "TableRow")
    4. └─rtables::build_table(., DM, alt_counts_df = DM_alt)
    5.   └─rtables::update_ref_indexing(tab)
    6.     ├─formatters::make_row_df(tt)
    7.     └─rtables::make_row_df(tt)
    8.       ├─formatters::make_row_df(...)
    9.       └─rtables::make_row_df(...)
   10.         ├─formatters::make_row_df(...)
   11.         └─rtables::make_row_df(...)
   12.           ├─formatters::make_row_df(...)
   13.           └─rtables::make_row_df(...)
   14.             ├─formatters::pagdfrow(...)
   15.             │ └─base::data.frame(...)
   16.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   17.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   18.               ├─base::unlist(...)
   19.               └─base::mapply(...)
   20.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   21.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   22.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   23.                     ├─base::unlist(...)
   24.                     └─base::vapply(...)
   25.                       ├─formatters (local) FUN(X[[i]], ...)
   26.                       └─formatters (local) FUN(X[[i]], ...)
   27.                         └─base::vapply(...)
   28.                           └─formatters (local) FUN(X[[i]], ...)
   29.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   30.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:181:3'): as.rtable.data.frame works correctly
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'toString': argument "fontspec" is missing, with no default
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(res) at test-utils_rtables.R:181:3
   2.   └─rlang::cnd_signal(state$error)
  
  Error ('test-utils_rtables.R:246:3'): append_varlabels works as expected
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, DM) at test-utils_rtables.R:246:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:258:3'): append_varlabels correctly concatenates multiple variable labels
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. └─rtables::build_table(lyt, DM) at test-utils_rtables.R:258:3
    2.   └─rtables::update_ref_indexing(tab)
    3.     ├─formatters::make_row_df(tt)
    4.     └─rtables::make_row_df(tt)
    5.       ├─formatters::make_row_df(...)
    6.       └─rtables::make_row_df(...)
    7.         ├─formatters::make_row_df(...)
    8.         └─rtables::make_row_df(...)
    9.           ├─formatters::make_row_df(...)
   10.           └─rtables::make_row_df(...)
   11.             ├─formatters::pagdfrow(...)
   12.             │ └─base::data.frame(...)
   13.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.               ├─base::unlist(...)
   16.               └─base::mapply(...)
   17.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   18.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                     ├─base::unlist(...)
   21.                     └─base::vapply(...)
   22.                       ├─formatters (local) FUN(X[[i]], ...)
   23.                       └─formatters (local) FUN(X[[i]], ...)
   24.                         └─base::vapply(...)
   25.                           └─formatters (local) FUN(X[[i]], ...)
   26.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   27.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_rtables.R:269:3'): default na_str works properly
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tmp) at test-utils_rtables.R:269:3
    2. └─rtables::build_table(., tmp)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::make_row_df(...)
   11.           └─rtables::make_row_df(...)
   12.             ├─formatters::pagdfrow(...)
   13.             │ └─base::data.frame(...)
   14.             ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   15.             └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   16.               ├─base::unlist(...)
   17.               └─base::mapply(...)
   18.                 └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   19.                   ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   20.                   └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   21.                     ├─base::unlist(...)
   22.                     └─base::vapply(...)
   23.                       ├─formatters (local) FUN(X[[i]], ...)
   24.                       └─formatters (local) FUN(X[[i]], ...)
   25.                         └─base::vapply(...)
   26.                           └─formatters (local) FUN(X[[i]], ...)
   27.                             └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   28.                               └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:11:3'): analyze_vars works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = tern_ex_adsl) at test-utils_split_fun.R:11:3
    2. └─rtables::build_table(., df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:31:3'): compare_vars works as expected with ref_group first split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(df = tern_ex_adsl) at test-utils_split_fun.R:31:3
    2. └─rtables::build_table(., df = tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:43:3'): summarize_ancova works as expected with ref_group position split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(tern_ex_adsl) at test-utils_split_fun.R:43:3
    2. └─rtables::build_table(., tern_ex_adsl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:64:3'): binary endpoint layouts work as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adrs_f) at test-utils_split_fun.R:64:3
    2. └─rtables::build_table(., adrs_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:85:3'): time to event layouts works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(adtte_f) at test-utils_split_fun.R:85:3
    2. └─rtables::build_table(., adtte_f)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::make_row_df(...)
    9.         └─rtables::make_row_df(...)
   10.           ├─formatters::pagdfrow(...)
   11.           │ └─base::data.frame(...)
   12.           ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   13.           └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   14.             ├─base::unlist(...)
   15.             └─base::mapply(...)
   16.               └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   17.                 ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   18.                 └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   19.                   ├─base::unlist(...)
   20.                   └─base::vapply(...)
   21.                     ├─formatters (local) FUN(X[[i]], ...)
   22.                     └─formatters (local) FUN(X[[i]], ...)
   23.                       └─base::vapply(...)
   24.                         └─formatters (local) FUN(X[[i]], ...)
   25.                           └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   26.                             └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:108:3'): summarize_ancova works as expected with ref_group_position last split fun
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(anl) at test-utils_split_fun.R:108:3
    2. └─rtables::build_table(., anl)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  Error ('test-utils_split_fun.R:128:3'): level_order works for integerish and characters
  Error in `nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)`: argument "fontspec" is missing, with no default
  Backtrace:
       ▆
    1. ├─... %>% build_table(iris) at test-utils_split_fun.R:128:3
    2. └─rtables::build_table(., iris)
    3.   └─rtables::update_ref_indexing(tab)
    4.     ├─formatters::make_row_df(tt)
    5.     └─rtables::make_row_df(tt)
    6.       ├─formatters::make_row_df(...)
    7.       └─rtables::make_row_df(...)
    8.         ├─formatters::pagdfrow(...)
    9.         │ └─base::data.frame(...)
   10.         ├─formatters::nlines(tt, colwidths = colwidths, max_width = max_width)
   11.         └─rtables::nlines(tt, colwidths = colwidths, max_width = max_width)
   12.           ├─base::unlist(...)
   13.           └─base::mapply(...)
   14.             └─rtables (local) `<fn>`(s = dots[[1L]][[1L]], w = dots[[2L]][[1L]])
   15.               ├─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   16.               └─formatters::nlines(strsplit(s, "\n", fixed = TRUE), max_width = w)
   17.                 ├─base::unlist(...)
   18.                 └─base::vapply(...)
   19.                   ├─formatters (local) FUN(X[[i]], ...)
   20.                   └─formatters (local) FUN(X[[i]], ...)
   21.                     └─base::vapply(...)
   22.                       └─formatters (local) FUN(X[[i]], ...)
   23.                         └─formatters::wrap_txt(xi, max_width, fontspec = fontspec)
   24.                           └─formatters::open_font_dev(fontspec)
  
  [ FAIL 183 | WARN 0 | SKIP 482 | PASS 887 ]
  ══ Terminated early ════════════════════════════════════════════════════════════
  Deleting unused snapshots:
  • g_forest/g_forest.new.svg
  • g_forest/g_forest.svg
  • g_forest/g_forest_custom_1.new.svg
  • g_forest/g_forest_custom_1.svg
  • g_forest/g_forest_custom_2.new.svg
  • g_forest/g_forest_custom_2.svg
  • g_forest/g_forest_custom_3.new.svg
  • g_forest/g_forest_custom_3.svg
  • g_forest/g_forest_or.new.svg
  • g_forest/g_forest_or.svg
  • g_forest/g_forest_plot_only.new.svg
  • g_forest/g_forest_plot_only.svg
  • g_forest/g_forest_table_only.new.svg
  • g_forest/g_forest_table_only.svg
  • g_km/g_km_crop_ylim_failure.svg
  • g_km/g_km_custom_ylim.svg
  • g_km/g_km_table_only.svg
  • g_lineplot/g_lineplot_facets.svg
  • utils_ggplot/df2gg_cw.svg
  • utils_ggplot/df2gg_fs.svg
  • utils_ggplot/rtable2gg_colsplits.svg
  • utils_ggplot/rtable2gg_cw.svg
  • utils_ggplot/rtable2gg_default.svg
  • utils_ggplot/rtable2gg_fs.svg
  • utils_ggplot/rtable2gg_lblpad.svg
  Error: Test failures
  Execution halted