#' @importFrom curl has_internet
#' @importFrom usethis ui_stop
#'
.check_internet <- function(){
if (!curl::has_internet()) {
usethis::ui_stop("No internet connection. Can not download data. Try again when you are online.")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.