tests/testthat/test_import_ontime.R

library(skynet)

context("Test Import Ontime")

test_that("Import Ontime", {
  import_ontime(skynet_example("Ontime_2011_1.csv"))
  expect_output(str(nrow(ontime_2011_1)), "50")
  expect_length(ontime_2011_1, 26)
})

Try the skynet package in your browser

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

skynet documentation built on June 17, 2022, 5:05 p.m.