-
Notifications
You must be signed in to change notification settings - Fork 214
Improve on cols_hide()
messages on edge cases and allow empty input
#1632
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
Conversation
cols_hide()
messages on edge casescols_hide()
messages on edge cases and allow empty input
I found that the Do you think there should be shared behavior between the column moving and hiding functions? |
I like having because exibble |>
gt()
cols_hide(
fctr
) But then if you change your mind, you can just comment it out. That's actually how I came across this bug. exibble |>
gt()
cols_hide(
# fctr
) I have never used However, as a reference, So, I like how you handled it in the last commit. |
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.
LGTM!
I know it is difficult without a reprex, but do you have any clue on where to start for #1635. It is actually the reason why I made these contributions today. It has given me headaches for almost a week now. I am still pretty much clueless (apart from using 0.10.0, which I don't really like) If anything of what I mentioned there rings a bell, please let me know! |
Summary
Add
cols_hide()
and put better user-facing messages when something goes wrong. Follow-up to #1342Outstanding
exibble |> gt() |> cols_hide(everything())
still gives an ugly error, but I will leave that to you!Edit: I just discovered that it worked as expected in gt 0.10.0, but stopped working in gt 0.10.1.
It now gives Error in has_rtl[i, ] : subscript out of bounds
Not affected by this PR.
Question
Is there a way to bench mark gt?
Improved messages
Related GitHub Issues and PRs
cols_hide()
has a documentation issue and error msg #1631Checklist
testthat
unit tests totests/testthat
for any new functionality.