Skip to content

Commit

Permalink
don't use glue::glue() in recipe step
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Sep 26, 2023
1 parent ccda3e5 commit 8805175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/step_nest.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ prep.step_nest <- function(x, training, info = NULL, ...) {
lookup_table <- training %>%
tidyr::nest(data = -c(!!!rlang::syms(names))) %>%
dplyr::ungroup() %>%
dplyr::mutate(.nest_id = glue::glue("Nest {1:dplyr::n()}")) %>%
dplyr::mutate(nest_id = factor(paste("Nest", 1:dplyr::n()))) %>%
dplyr::select(-"data")
} else {
lookup_table <- NULL
Expand Down

0 comments on commit 8805175

Please sign in to comment.