Skip to content
Snippets Groups Projects
Verified Commit 6ec14b38 authored by Gärber, Florian's avatar Gärber, Florian
Browse files

fix: MFI without `type` param causing an error

`type` must be NULL or a character vector, and wasn't. Now defaults correctly.
parent 80c332f3
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,11 @@ RandomForestSurrogates <- function(
s <- nvar - 1
}
if (!is.null(type) && !is.character(type)) {
warning(paste0("`type` must be NULL or a character vector."))
type <- NULL
}
type_match_args <- c("regression", "classification", "survival")
type <- match.arg(type, type_match_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment