Skip to content

Commit 326e15a

Browse files
Check dots empty censoring model (#1037)
* check that dots are empty in predict.censoring_model_reverse_km() * add news * bump version
1 parent e8b9c9f commit 326e15a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: parsnip
22
Title: A Common API to Modeling and Analysis Functions
3-
Version: 1.1.1.9005
3+
Version: 1.1.1.9006
44
Authors@R: c(
55
person("Max", "Kuhn", , "max@posit.co", role = c("aut", "cre")),
66
person("Davis", "Vaughan", , "davis@posit.co", role = "aut"),

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
* Fixed a bug in the integration with workflows where using a model formula with a formula preprocessor could result in a double intercept (#1033).
1616

17+
* The `predict()` method for `censoring_model_reverse_km` objects now checks that `...` are empty (#1029).
1718

1819
# parsnip 1.1.1
1920

R/survival-censoring-model.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ predict.censoring_model <- function(object, ...) {
6262

6363
#' @export
6464
predict.censoring_model_reverse_km <- function(object, new_data, time, as_vector = FALSE, ...) {
65+
rlang::check_dots_empty()
66+
6567
rlang::check_installed("prodlim", version = "2022.10.13")
6668
rlang::check_installed("censored", version = "0.1.1.9002")
6769

0 commit comments

Comments
 (0)