check_offline <- function(action = stop, msg = "Being offline.", ...) {
offline <- !curl::has_internet()
if (offline) {
action(msg, ...)
}
offline
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.