Skip to content

Commit fbceb88

Browse files
committed
try to retain the class to the extent possible
1 parent f76961c commit fbceb88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/epi_recipe.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ epi_recipe.default <- function(x, ...) {
6363
#' r
6464
epi_recipe.epi_df <-
6565
function(x, formula = NULL, ..., vars = NULL, roles = NULL) {
66+
attr(x, "decay_to_tibble") <- FALSE
6667
if (!is.null(formula)) {
6768
if (!is.null(vars)) {
6869
rlang::abort(
@@ -160,6 +161,7 @@ epi_recipe.formula <- function(formula, data, ...) {
160161
return(recipes::recipe(formula, data, ...))
161162
}
162163

164+
attr(data, "decay_to_tibble") <- FALSE
163165
f_funcs <- recipes:::fun_calls(formula, data)
164166
if (any(f_funcs == "-")) {
165167
abort("`-` is not allowed in a recipe formula. Use `step_rm()` instead.")

0 commit comments

Comments
 (0)