Skip to content
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

Merged
merged 2 commits into from
Jan 25, 2024
Merged

deprecate rpart_train() #1048

merged 2 commits into from
Jan 25, 2024

Conversation

simonpcouch
Copy link
Contributor

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 to rpart_train() rather than rpart in general.

@@ -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(
Copy link
Contributor Author

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).
Copy link
Contributor Author

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.☃️

Copy link
Member

@hfrick hfrick Jan 17, 2024

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 👍

Copy link
Member

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 😄

@simonpcouch simonpcouch requested a review from topepo January 16, 2024 15:58
@simonpcouch simonpcouch merged commit 8ccf1be into main Jan 25, 2024
7 checks passed
@simonpcouch simonpcouch deleted the rpart-1044 branch January 25, 2024 17:59
Copy link

github-actions bot commented Feb 9, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate rpart_train()
4 participants