-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use rtables pkg function for generating report #265
Conversation
Code Coverage Summary
Diff against main
Results for commit: d493bd8 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Test Performance Difference
Additional test case details
Results for commit 5314ea5 ♻️ This comment has been updated with latest results. |
Signed-off-by: Davide Garolini <[email protected]>
CLA Assistant Lite bot ✅ All contributors have signed the CLA |
I have read the CLA Document and I hereby sign the CLA |
@kartikeyakirar, how is this going? I think it is kind of ready isnt it? ^^ |
@Melkiades, I had paused work on this due to sprint priorities but have now resumed. The issue was addressed in the PR. We discussed the possibility of removing any calls to the flextable package and eliminating it from our imports. As a result, I've moved this to draft and am actively working on it.
I think i should have merged this and created a separate issue to remove flextable, to maintain momentum. |
I have read the CLA Document and I hereby sign the CLA |
It is anyway imported by rtables function so I do not think it will make a lot of a difference |
Unit Tests Summary 1 files 18 suites 37s ⏱️ Results for commit d493bd8. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Only could you reinstate some tests for the functionality anyway? something simple ofc. Thank you very much Kartik!!
Merge branch '258_fix_table_cutoff' of https://github.com/insightsengineering/teal.reporter into 258_fix_table_cutoff # Conflicts: # tests/testthat/test-utils.R
done 800d071 |
rtables::main_footer(ft) <- mf$main_footer | ||
rtables::prov_footer(ft) <- mf$prov_footer | ||
rtables::header_section_div(ft) <- mf$header_section_div | ||
ft <- rtables::tt_to_flextable(ft, total_width = c(grDevices::pdf.options()$width - 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kartikeyakirar if there is an issue with the width could be coming from here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the size is too large, and any width adjustment cannot handle it. Please check the table #274 (comment). We need to break the table with similar functions as export_as_pdf
.
partially fixes :#258
feasibility to remove any call from flextable pkg and remove it from import