# NOT RUN {
tune()
tune("your name here")
# In practice, `tune()` is used alongside recipes or parsnip to mark
# specific arguments for tuning
library(recipes)
recipe(mpg ~ ., data = mtcars) %>%
step_normalize(all_numeric_predictors()) %>%
step_pca(all_numeric_predictors, num_comp = tune())
# }
Run the code above in your browser using DataLab