Hello, considering the following code:
rec <- recipe(Petal.Width ~ ., data=iris) |>
# removes accents
step_mutate(Species = stri_trans_general(Species, 'Latin-ASCII'))
required_pkgs(rec)
# 'recipes'
stri_trans_general
is a function from the stringi
package, however since it is inside the step_mutate, recipes is not aware of the additional package dependency.
Is there a way to manually add stringi
to this list of required packages ?
this is important for vetiver to known which packages to use during inference time, see the related discussion: Function not found at inference time · Issue #269 · rstudio/vetiver-r · GitHub
thanks.