warn_if_not_dir_exists <- function(x) {
if (!fs::dir_exists(x)) {
warn(
glue(
"This directory doesn't exist:
{ui_path(x)}
Do you need to create it?"
)
)
}
invisible(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.