-
Notifications
You must be signed in to change notification settings - Fork 15
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
Be strict about cols
, widths
, hidden
lengths.
#991
Conversation
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.
I agree that seems a bit sketchy. I prefer non breaking changes very much. Preferably they don’t interfere with me as user at all. If I was happy with the code a few months ago, why would I change my mind?
I will think about it over the weekend. Thanks for the PR and the explanations.
No worries, this lacks polishing, but wanted to bake a PR before I forgot about this and / or get bitten again. |
We might have to adjust the changes to test order. It seems that at least one test is now flaking on CI |
Does adding |
Not sure, it’s just one test is starting to fail because a testfile is not yet available |
Maybe it is just gh API limitations then.. |
Hi @olivroy , sorry, me opening #1005 was a little late and I didn't want to rush you. I usually strive to announce new releases a bit earlier so that people (well, mostly me) can make time to finish PRs and do further cleanups. Unfortunately this time I have received a CRAN notification to push a fix for the |
to me, it feels like it is finished. just adding warnings in the case of incompatible widths / hidden supplied to set_col_widths. Leaving the rest unchanged and moving tests in a new entry to catch wb_set_col_widths It feels less intrusive than throwing error, but signaling that the input may provide unexpected 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.
Thanks, I just now realize that you have simply moved the expect_error()
tests, but I actually feel that testing against some condition is worth it (we once had a expect_warning()
test that succeeded, but the warning was produced for reasons unrelated to openxlsx2
and not what was supposed to be covered 😀
Otherwise good to go!
Thanks! So, I guess you can merge and then test revdeps? |
Please fix the lintr warning and the probably unintended change in the example code. Feel free to squash merge afterwards. Thanks! |
Fixed both the lintr warning and the typo.. Sometimes RStudio types things for me :( |
May want to change errors for warnings?
two things here
hidden
is documented as a vector of logical, but class is not enforced, and in tests, integers are provided?At some point, my script was like that
but then I realized that I needed a wider column 4 and I did this:
or the opposite, but to realize very much later that it was the wrong thing.
Base R recycling rules are sometimes not what you expect
To avoid breaking changes, I could change this to warnings. I used
%%
to only error if one is not a multiple of the other,