Nothing
test_that("perform_request handles API failure correctly", {
with_mocked_bindings(
req_perform = function(...) {
stop("API connection error: Connection timed out")
},
expect_error(
perform_request("sdg4"),
"Check your internet connection and function parameters."
)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.