tests/testthat.R

library(testthat)
library(farsfunction)

test_check("farsfunction")

expect_that(fars_map_state(00,2015), throws_error("invalid STATE number: 0"))

expect_that(fars_read("productions.csv"), throws_error("file 'productions.csv' does not exist"))
Yovanovid/Example_Package documentation built on June 13, 2019, 7:48 a.m.