# \donttest{
if (requireNamespace("parsnip", quietly = TRUE)) {
library(parsnip)
# Check for a model that exists in parsnip
model_exists("mlp")
# Check for a model that does not exist
model_exists("non_existent_model")
}
# }
Run the code above in your browser using DataLab