tests/testthat/test-inspect_na.R

test_that("inspect_na summarizes missingness in data frame columns", {

  path_test <- test_path("extdata", "airquality.csv")

  train_data <- inspect_na(airquality)

  test_data <- readr::read_csv(path_test, show_col_types = FALSE)

  expect_equal(dim(train_data) , dim(test_data))

})

Try the bulkreadr package in your browser

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

bulkreadr documentation built on May 29, 2024, 1:35 a.m.