Improved verbose messages in rolling functions frolladaptivefun and frollfun#7733
Improved verbose messages in rolling functions frolladaptivefun and frollfun#7733ben-schwen merged 22 commits intoRdatatable:masterfrom
Conversation
Updating Project Fork
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7733 +/- ##
=======================================
Coverage 99.04% 99.04%
=======================================
Files 87 87
Lines 17058 17064 +6
=======================================
+ Hits 16895 16901 +6
Misses 163 163 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jangorecki
left a comment
There was a problem hiding this comment.
Approach is good, just some comments to make it cleaner.
… (defined in froll.c & extern in data.table.h)
jangorecki
left a comment
There was a problem hiding this comment.
Trailing white spaces seems to be only remaining thing left.
The message now includes our group members as suggested by @ben-schwen
|
|
||
| 6. `yearqtr()` and `yearmon()` now gain an optional format specifier [#7694](https://github.com/Rdatatable/data.table/issues/7694). 'numeric' is the default, which preserves the original behavior, but 'character' formats `yearqtr()` as YYYYQ# (e.g. 2025Q2) and `yearmon()` as YYYYM## (e.g. 2025M02, 2025M10). Thanks to @jan-swissre for the report and @LunaticSage218 for the implementation. | ||
|
|
||
| 7. Verbose outputs from `frolladaptivefun()` and `frollfun()` are now clearer and more user friendly [#7021](https://github.com/Rdatatable/data.table/issues/7021). Thanks to @Omartech312, @aidengseay, @kkarissa, and @heb229 for the implementation, to @ben-schwen for the review, and to @jangorecki for the extensive guidance and review. |
There was a problem hiding this comment.
I forgot in my last comment.
It's probably fitting best under ### NOTES (maybe under ### BUG FIXES), since its not a real new feature.
ben-schwen
left a comment
There was a problem hiding this comment.
Apart from NEWS (which fits imo better within NOTES than NEW FEATURES), LGTM!
TY!
moved text stating new change from the NEW FEATURES section to Notes.
|
LGTM test.data.table("frollBatch.Rraw")? |
|
@jangorecki I believe it does, since we did not modify any logic in the froll functions, only the verbosity of the messages. In our testing, we did not get any flags from test.data.table("frollBatch.Rraw") |
Closes #7021.
Previously, the frolladaptivefun and rfollfun algo verbose messages were not super user friendly, displaying messages like:
frolladaptivefun: algo 0 not implemented, fall back to 1The wanted adjustment was for it to instead produce:
frolladaptivefun: algo fast not implemented, fall back to exactThere was also:
frollfun: processing fun 0 algo 0 took...and the desired result was instead:
frollfun: processing fun mean algo fast took...We adjusted for the desired functionality by creating an array of strings called rfunNames, using the rfun enum as an index to select the proper display type for the running function and then displaying fast or exact dependent on the value of value (0 for fast, 1 for exact).
Here is an example of the current output (from running tests) with the changed files in this PR:
frolladaptivefun: processing fun MIN algo exact took 0.000sfrolladaptivefun: algo fast not implemented, fall back to exactWe have additionally adjusted the NEWS.md file and the corresponding tests in inst/tests/froll.Rraw.