library(fars)
context("FARS tests")
test_that("Testing make_filename", {
expect_match(make_filename(2013), "accident_2013.csv.bz2")
expect_warning(fars_read_years(2013), "invalid year: 2013")
expect_error(fars_map_state(1,2013), "file 'accident_2013.csv.bz2' does not exist")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.