Skip to content

Commit

Permalink
Update R/recipe.R
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Hvitfeldt <[email protected]>
  • Loading branch information
juliasilge and EmilHvitfeldt authored Jul 19, 2024
1 parent e38e9de commit accc0c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ vetiver_create_meta.recipe <- function(model, metadata) {
#' @rdname vetiver_create_ptype
#' @export
vetiver_ptype.recipe <- function(model, ...) {
preds <- vec_slice(model$var_info, model$var_info$role == "predictor")
model$ptype[preds$variable]
recipes::recipes_ptype(model, stage = "bake")
}

#' @rdname vetiver_create_description
Expand Down

0 comments on commit accc0c7

Please sign in to comment.