tests/testthat/test-read_excel_files_from_dir.R

test_that("read_excel_files_in_folder reads Excel Workbooks data from a directory", {

  path_train <- test_path("xlsxfolder")

  path_test <- test_path("extdata", "read_excel_files_in_folder.xlsx")

  train_data <- read_excel_files_from_dir(path_train)

  test_data <- readxl::read_xlsx(path_test)

  expect_equal(dim(test_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.