insightsengineering / formatters

A framework for creating listings of raw data that include specialized formatting, headers, footers, referential footnotes, and pagination.
https://insightsengineering.github.io/formatters/
Other
15 stars 6 forks source link

Fix pagination LBT01 issue count #292

Closed Melkiades closed 2 months ago

Melkiades commented 2 months ago

now the following produces 6 pages with proper counts:

library(chevron)
library(rtables)
res <- run(lbt01, chevron::syn_data)
options(formatter_default_page_number = "{i}/{n}")
cat(export_as_txt(res))

Fixes #291

github-actions[bot] commented 2 months ago

Unit Tests Summary

  1 files    8 suites   14s :stopwatch:  49 tests  49 :white_check_mark: 0 :zzz: 0 :x: 338 runs  338 :white_check_mark: 0 :zzz: 0 :x:

Results for commit 419acb97.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 2 months ago

badge

Code Coverage Summary

Filename             Stmts    Miss  Cover    Missing
-----------------  -------  ------  -------  --------------------------------------------------------------------------------------------------------------------------------------------------------
R/format_value.R       195      12  93.85%   88, 105-112, 187, 296, 396, 407, 415
R/generics.R           118      10  91.53%   255-259, 461, 473, 504, 534, 642, 666-673
R/labels.R              55       7  87.27%   51, 57, 66, 107, 133, 142, 146
R/matrix_form.R        635      42  93.39%   102, 431-432, 511, 523-526, 544, 575, 664-665, 679-684, 714-717, 746-747, 777-778, 860-861, 888, 916, 967, 1123, 1159, 1162-1166, 1213, 1261, 1264, 1268
R/mpf_exporters.R      263      19  92.78%   2, 96-98, 143, 179, 220, 225, 402-408, 412, 415, 453, 546-547
R/page_size.R           45       1  97.78%   171
R/pagination.R         680      40  94.12%   300-303, 404-417, 502, 577, 768-769, 789-798, 990-991, 1166-1167, 1180, 1186, 1265, 1395-1396, 1408-1409, 1423-1424
R/tostring.R           586      49  91.64%   40, 92, 162, 195, 203, 239, 296-299, 380-384, 387-390, 397-402, 479, 618-619, 684-691, 740-744, 828, 843, 936, 969, 1010, 1051, 1105, 1112
R/utils.R                3       0  100.00%
R/zzz.R                 17       6  64.71%   28-33
TOTAL                 2597     186  92.84%

Diff against main

Filename          Stmts    Miss  Cover
--------------  -------  ------  -------
R/pagination.R       +3      +2  -0.27%
TOTAL                +3      +2  -0.07%

Results for commit: 419acb97c5a914c43b90db472d24b4aac4ff7774

Minimum allowed coverage is 80%

:recycle: This comment has been updated with latest results