context("earthquakes")
test_that("Required variables present in dataset",{
expect_true(
all(c("YEAR", "MONTH", "DAY", "LATITUDE", "LONGITUDE", "LOCATION_NAME") %in% names(earthquakes))
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.