library(testthat)
data = system.file('extdata', 'earthquakesData.tsv', package ='masteringSoftwareDevelopmentinR')
data = read_data(data)
cleanedData <- eq_clean_data(data)
map = eq_map('Location.Name', cleanedData)
test_that("the output is a leaflet",{
expect_s3_class(map, "leaflet")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.