tests/testthat/test-text-datasets.R

context("text datasets")

test_succeeds("text_line_dataset creates a dataset", {
  text_line_dataset(testing_data_filepath("mtcars.csv"))
})


test_succeeds("text_line_dataset can read gzip datasets", {
  text_line_dataset(testing_data_filepath("mtcars.tar.gz"), compression_type = "GZIP")
})

Try the tfdatasets package in your browser

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

tfdatasets documentation built on June 30, 2022, 1:04 a.m.