-
Notifications
You must be signed in to change notification settings - Fork 88
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
deprecate rpart_train()
#1048
deprecate rpart_train()
#1048
Conversation
@@ -165,6 +168,12 @@ check_args.decision_tree <- function(object) { | |||
#' @export | |||
rpart_train <- | |||
function(formula, data, weights = NULL, cp = 0.01, minsplit = 20, maxdepth = 30, ...) { | |||
lifecycle::deprecate_warn( |
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.
Starting with a more aggressive deprecation as, from what I can tell, rpart_train()
was never used, even when it was first committed.
@@ -1,5 +1,7 @@ | |||
# parsnip (development version) | |||
|
|||
* `rpart_train()` has been deprecated in favor of using `decision_tree()` with the `"rpart"` engine or `rpart::rpart()` directly (#1044). |
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.
Some of these bullets have the parens before the periods, others not. We can fix before release.☃️
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 style guide says to put them before the period 👍
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'm so opposed to that part of the style guide 😄
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Closes #1044.🌲🚃
My main question here is whether we should port some of this argument documentation to the
details_decision_tree_rpart
help-file. Much of these docs seem relevant torpart_train()
rather than rpart in general.