tests/testthat/test-read_tidyxl.R

test_that("read_tidyxl_data() works as expected", {
  with_tempdir({
    temp_xlsx_file <- create_test_xlsx_file()

    expect_error(
      read_tidyxl_data(temp_xlsx_file, "Sheet"),
      class = "readapra_error_multiple_sheets_selected"
    )
  })
})

Try the readapra package in your browser

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

readapra documentation built on April 12, 2025, 1:48 a.m.