if (FALSE) {
if (
requireNamespace("parsnip", quietly = TRUE) &&
requireNamespace("rpart", quietly = TRUE)
) {
# Use a decision tree model fitted with the rpart package
parsnip_model(
model_spec = parsnip::decision_tree(tree_depth = 30) |>
set_mode("classification") |>
set_engine("rpart"),
save_path = tempdir()
)
}
}
Run the code above in your browser using DataLab