Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# parsnip (development version)

* `surv_reg()` is now defunct and will error if called. Please use `survival_reg()` instead (#1206).

# parsnip 1.3.3

* Bug fix in how tunable parameters were configured for brulee neural networks.
Expand Down
3 changes: 1 addition & 2 deletions R/surv_reg.R

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[air] reported by reviewdog 🐶

parsnip/R/surv_reg.R

Lines 32 to 46 in 8928da4

args <- list(
dist = enquo(dist)
)
new_model_spec(
"surv_reg",
args = args,
eng_args = NULL,
mode = mode,
user_specified_mode = !missing(mode),
method = NULL,
engine = engine,
user_specified_engine = !missing(engine)
)
}

Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#' @keywords internal
#' @export
surv_reg <- function(mode = "regression", engine = "survival", dist = NULL) {

lifecycle::deprecate_warn("0.1.6", "surv_reg()", "survival_reg()")
lifecycle::deprecate_stop("1.4.0", "surv_reg()", "survival_reg()")

args <- list(
dist = enquo(dist)
Expand Down
Loading