library(testthat)
library(fars)
test_that("make file names", {
filename <- make_filename(2013)
expect_that(filename, is_a("character"))
})
test_that("Read report CSV files",{
df <- fars_read(system.file("extdata","accident_2014.csv.bz2",package="fars"))
expect_is(df,"data.frame")
expect_equal(nrow(df),30056)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.