Skip to content

Commit a479b3e

Browse files
committed
bug fix in distirbutional assignment
1 parent dc2db9b commit a479b3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/surv_reg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ check_args.surv_reg <- function(object) {
154154
args <- lapply(object$args, rlang::eval_tidy)
155155

156156
# `dist` has no default in the function
157-
if (all(names(args) != "dist"))
157+
if (all(names(args) != "dist") || is.null(args$dist))
158158
object$args$dist <- "weibull"
159159
}
160160

R/surv_reg_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
surv_reg_arg_key <- data.frame(
3-
flexsurv = c("dist", NA),
3+
flexsurv = c("dist"),
44
stringsAsFactors = FALSE,
5-
row.names = c("dist", "mixture")
5+
row.names = c("dist")
66
)
77

88
surv_reg_modes <- "regression"

0 commit comments

Comments
 (0)