insightsengineering / teal.reporter

Create and preview reports with Shiny modules
https://insightsengineering.github.io/teal.reporter/
Other
8 stars 9 forks source link

Enable listings support & table annotations in `to_flextable` #220

Closed edelarua closed 9 months ago

edelarua commented 9 months ago

Closes #217

edelarua commented 9 months ago

Example report output:

ex_report

github-actions[bot] commented 9 months ago

badge

Code Coverage Summary

Filename              Stmts    Miss  Cover    Missing
------------------  -------  ------  -------  ----------------------------------------------------------------------------------
R/AddCardModule.R       140       1  99.29%   195
R/Archiver.R             25       0  100.00%
R/ContentBlock.R         18       2  88.89%   38-44
R/DownloadModule.R      207      49  76.33%   89-95, 138, 163-168, 177-181, 184-188, 196-200, 203-207, 214-218, 221-225, 262-266
R/FileBlock.R            13       0  100.00%
R/NewpageBlock.R          2       0  100.00%
R/PictureBlock.R         30       2  93.33%   15, 79
R/Previewer.R           295      56  81.02%   183, 197, 199-202, 205, 208-216, 325-369
R/RcodeBlock.R           15       0  100.00%
R/Renderer.R             90      19  78.89%   96, 104, 113, 115-133
R/ReportCard.R           77       4  94.81%   180, 219, 224, 245
R/Reporter.R             94       1  98.94%   254
R/ResetModule.R          55       0  100.00%
R/SimpleReporter.R       29       0  100.00%
R/TableBlock.R            9       0  100.00%
R/TextBlock.R            13       0  100.00%
R/utils.R               152      70  53.95%   7, 38-97, 99, 102-109, 163, 175-177
R/yaml_utils.R           74       2  97.30%   41, 239
TOTAL                  1338     206  84.60%

Diff against main

Filename      Stmts    Miss  Cover
----------  -------  ------  -------
R/utils.R       +13      +1  +3.59%
TOTAL           +13      +1  +0.08%

Results for commit: bdd950cbbfd65f2e4fb1e605a8774520a5782529

Minimum allowed coverage is 80%

:recycle: This comment has been updated with latest results

github-actions[bot] commented 9 months ago

Unit Tests Summary

    1 files    18 suites   14s :stopwatch: 202 tests 202 :heavy_check_mark: 0 :zzz: 0 :x: 341 runs  341 :heavy_check_mark: 0 :zzz: 0 :x:

Results for commit 91707d81.

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

kartikeyakirar commented 9 months ago

listing_df should be added as list of supported formats in TableBlock.R?

edelarua commented 9 months ago

listing_df should be added as list of supported formats in TableBlock.R?

@kartikeyakirar yes - thanks for spotting that! I have added "listing_df" to TableBlock as well.