-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(epi[x]_slide): hint on forgotten syntax specifying comp #533
Conversation
fc256bb
to
eb997a0
Compare
eb997a0
to
e5adcbd
Compare
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.
Looks great to me, thanks! Didn't test it, since the tests look good enough to me 👍
* Mention what's acceptable for yearmonth time_type * Mention Inf in validation errors as acceptable iff it's actually acceptable. * Reject any other strange "int" classes that pass test_int. (It rejects Date and POSIXt, but perhaps there are others.) * Refactor to use helper function test_sensible_int instead of test_int (as latter accepts difftimes and makes logic look confusing).
While addressing some lints & testing annoyances, I realized existing error messages may not hint enough for someone who is expecting @dshemetov If you have time, could you please take a look? Think it's ready to merge (DESCRIPTION, NEWS.md etc. up to date) if you think it looks good. (This might be new diffs, though apparently I was missing snapshot files originally so it's not that elucidating..) |
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.
Checklist
Please:
PR).
brookslogan, nmdefries.
DESCRIPTION
. Always incrementthe patch version number (the third number), unless you are making a
release PR from dev to main, in which case increment the minor version
number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
1.7.2, then write your changes under the 1.8 heading).
process.
Change explanations for reviewer
Tries to provide some hints when a user has forgotten part of the syntax when specifying their slide computation, e.g., the tilde in a formula. It's just a hint so we don't false-diagnose e.g.
Perfectly distinguishing between forgotten syntax and the above type of error may allow us to just fix it up, but likely requires significantly more complex slide code, so we could try these hints first.
Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch
.f
argument usage in epix_slide #529.