test_that("UKAIR endpoint works", {
x <- try(ukair_api(path = "", query = ""), silent = TRUE)
if ("try-error" %in% class(x) | is.null(class(x))) {
skip("UKAIR endpoint is not available")
}else{
expect_equal(x$status_code, 200)
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.