tests/testthat/test-read_table_builder.R

context("Test the read_table_builder function")

test_that(
  desc = "read_table_builder returns a data.frame",
  code = {
    data_dir <- system.file("extdata", package = "stplanr")
    t1 <- read_table_builder(file.path(data_dir, "SA1Population.csv"))
    expect_is(t1, "data.frame")
  }
)

Try the stplanr package in your browser

Any scripts or data that you put into this service are public.

stplanr documentation built on Oct. 20, 2018, 5:05 p.m.