xlsx_export <- function(file, model) {
if (!requireNamespace("writexl", quietly = TRUE)) return();
writexl::write_xlsx(list('Results' = mtcars), path = file)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.