# Load libraries
suppressWarnings(suppressMessages(library(parsnip)))
# Create model and fit
earth_fit <- mars(mode = "regression") %>%
set_engine("earth") %>%
fit(Volume ~ ., data = trees)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.