skip_if_no_internet <- function() {
if (has_internet()) {
return()
}
testthat::skip("no internet")
}
has_internet <- function() {
!is.null(suppressWarnings(utils::nsl("www.google.com")))
}
Sys.setenv(R_TESTS = "")
PROGRESS <- FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.