tests/testthat/test-filenames.R

context("filenames")


test_succeeds("filenames can be listed", {

  dataset <-
    testing_data_filepath("mtcars*.csv") %>%
    file_list_dataset() %>%
    dataset_interleave(cycle_length = 2, function(file) {
      text_line_dataset(file)
    })
})

Try the tfdatasets package in your browser

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

tfdatasets documentation built on Sept. 11, 2024, 8:53 p.m.