-
-
Notifications
You must be signed in to change notification settings - Fork 15
picks #942
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
base: main
Are you sure you want to change the base?
picks #942
Conversation
Unit Tests Summary 1 files 23 suites 16m 8s ⏱️ For more details on these failures, see this check. Results for commit f8b884f. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 9b0a1a2 ♻️ This comment has been updated with latest results. |
|
S3 methods can only dispatch according to one argument. This PR duplicates entire modules for a dispatch on one argument. Isn't it better to have a conversion or a warning on each argument? User might end up mixing the new and the old approach and that could throw off the dispatch mechanism. |
It is better, problem is that delayed-filter_spec (with I provided this "brute-force" solution to make sure nothing breaks. It is possible to implement filter_spec -> teal_transform_module conversion but it will require significant design intrusion. Instead of making a design compromise in |
Yes, my idea is to raise an error when they are not convertible, and just a deprecation warning when they can be converted.
I am never sure of how to ease these transitions between code/designs. There are many tradeoffs and the most important information is hard to estimate: user current usage and user adoption of the future new design. How long we'll we need to keep |
Yup, I'm not sure if soft-deprecation process should start with hard deprecating one of the components. But as a developer I'd be happy to have a single version of the tm_*
Theoretically two minor releases. It could be more than one year. It would mean that during the most intensive development (in the early versions of the tool) we would have to deal with extra complication in the design. After the transition period we would remove and keep "raw" picks. |
| lattice (>= 0.18-4), | ||
| lifecycle (>= 0.2.0), | ||
| MASS (>= 7.3-60), | ||
| rlang, |
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.
| rlang, | |
| rlang (>= 1.0.0), |
| insightsengineering/teal, | ||
| insightsengineering/teal.reporter | ||
| insightsengineering/teal@redesign_extraction@main, | ||
| insightsengineering/teal.transform@redesign_extraction@main |
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.
IMHO teal.reporter is still needed in Remotes, as it's not released on CRAN?
| insightsengineering/teal.transform@redesign_extraction@main | |
| insightsengineering/teal.reporter | |
| insightsengineering/teal.transform@redesign_extraction@main |
| ggplot_themes <- c("gray", "bw", "linedraw", "light", "dark", "minimal", "classic", "void") | ||
|
|
||
| #' @importFrom lifecycle deprecated | ||
| #' @importFrom rlang := |
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.
Why is that needed? Is it becuase of the usage in tm_missing_data?
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.
Maybe we can rewrite tm_missing_data to get rid of rlang dependency
Closes insightsengineering/NEST-roadmap#36
Check also with:
In this PR, due to the fact that
data_extract_specis not 1:1 convertible topicks, I propose to have an S3 method in eachtm_to switch between data_extract_spec/picks depending on the input type. Eventually,data_extract_specvariant will be removed completely after deprecation period.