-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix factors crash in tm_g_association
#692
Conversation
Code Coverage Summary
Diff against main
Results for commit: d512862 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 5 suites 0s ⏱️ Results for commit d512862. ♻️ This comment has been updated with latest 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.
The fix does work but I am not satisfied with the reasoning.
Usually one would use the most junior class by taking ref_class <- class(ANL[[ref_name]])[1L]
. The core of the problem is that in this case the junior class, ordered
, is not supported. factor
, however, is.
Perhaps a better way would be to drop the ordered
class. What do you think?
I disagree that ggplot(ANL) + aes(x = Plant) + geom_bar() + ylab("Frequency") +
ggplot2::labs(subtitle = "Plot generated by Association Module",
x = "[Plant]") + ggplot2::theme_gray() And it works fine when the Plant column is either Alternatively, we could pass in the most junior class and add |
😲 When I tested it worked all the time. Can you tell me how to reproduce this? I'll convert I was talking about the |
I just ran the example app on your branch but with app code``` # general data exapmle devtools::load_all() library(teal.widgets)data <- teal_data() app <- init(
|
Thanks for the example. I see that this is just because when you made the change to pass the |
Forgot to add review comment: requesting changes because of missing full stops in linter exceptions. |
You sure you don't want the more concise syntax? Actually, the styler will probably wreck it anyway. |
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.
👍
Just to confirm, Merging this into |
Since you started on |
Closes #645
Changes:
Pass the base class into
bivariate_plot_call
because we only expect the base class in the downstream function call.