-
-
Notifications
You must be signed in to change notification settings - Fork 7
1040 rtables round type #366
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
base: main
Are you sure you want to change the base?
Conversation
…ing in certain situation - introduce getter and setter for round_type
|
I have read the CLA Document and I hereby sign the CLA |
Unit Tests Summary 1 files 8 suites 14s ⏱️ Results for commit eb17984. ♻️ This comment has been updated with latest results. |
Code Coverage SummaryDiff against mainResults for commit: eb17984 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
|
hi @iaugusty , can you please resolve the cicd checks. thanks |
|
@shajoezhu resolved, thx |
Signed-off-by: Davide Garolini <dgarolini@gmail.com>
shajoezhu
left a comment
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.
hi @iaugusty , there is breaking changes downstream https://github.com/insightsengineering/scda.test/actions/runs/19765994667/job/56638822161?pr=201 https://github.com/insightsengineering/formatters/actions/runs/19762364980/job/56627024250 can you please take a look. Thanks!
|
Hi @shajoezhu when I run scda.test with this branch of formatters and the corresponding branches of rtables and rlistings (1040_rtables_roundtype) I don't get any errors locally.
The processes have changed since I was last involved so is there something extra we need to do? |
Let me see how this goes https://github.com/insightsengineering/scda.test/pull/201/files |
|
Yay that worked.
When the code is merged into main (we still want Gabe to take a look so it won't be this week) - does the automation set insightsengineering/formatters@1040_rtables_round_type back to insightsengineering/formatters in the Desc file? Or do we have to do something else? |
shajoezhu
left a comment
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.
awesome! this is working thanks! see insightsengineering/scda.test#201
gmbecker
left a comment
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.
Overall new rounding type and generics look good. Please update default rounding type in various places from a fixed value to obj_round_type of the relevant (other) argument. I think I added suggestions for all of them but do another pass to make sure I didn't miss anything.
Note this looks like a ton of issues but its really just 2, I think, but one of them happens in many places, so not nearly as bad as it looks.
After applying suggestions and other changes please test locally (and remember to roxygenize). Marking as draft so you can apply the suggestions and then pull pull the changes to do the rest an test locally. reset it to non-draft whenever you feel its ready @iaugusty
R/tostring.R
Outdated
| round_type = c("iec", "sas")) { | ||
| round_type = valid_round_type) { | ||
| checkmate::assert_flag(tf_wrap) | ||
| round_type <- match.arg(round_type) |
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.
| round_type <- match.arg(round_type) |
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.
Only when paired with above change
R/mpf_exporters.R
Outdated
| paginate = TRUE, | ||
| round_type = valid_round_type, | ||
| ...) { | ||
| round_type <- match.arg(round_type) |
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.
| round_type <- match.arg(round_type) |
R/generics.R
Outdated
| fontspec = font_spec(), | ||
| col_gap = mf_colgap(tt) %||% 3L, | ||
| round_type = c("iec", "sas")) { | ||
| round_type = valid_round_type) { |
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.
This is fine because it throws an error but could be changed to obj_round_type as with others
|
updates as suggested and tested related PRs + scda.test locally. All seems fine, therefor convert back to PR |
Unit Test Performance DifferenceAdditional test case details
Results for commit fbe6305 ♻️ This comment has been updated with latest results. |
|
all checks passed, I hope we are good to go |
shajoezhu
left a comment
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.
downstream all good! insightsengineering/scda.test#201 thanks guys!


this PR is linked to rtables issue insightsengineering/rtables#1040