apiRootUrl <- "https://api.github.com/repos/smmtw/OpenDataSMM/contents/"
rawRootUrl <- "https://raw.githubusercontent.com/smmtw/OpenDataSMM/master/"
utils::globalVariables(c("type", "size"))
checkInternet <- function() {
if (!curl::has_internet()) {
stop("`opendataSmm` does not work offline. Please check your internet connection.",
call. = FALSE
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.