test_that("returns data for a dataset that is listed", {
expect_no_error(get_latest_resource("gp-practice-populations"))
})
test_that("returns error for a dataset that is not listed", {
expect_error(get_latest_resource("hospital-codes"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.