tests/testthat/setup.R

library(dplyr)
library(checkmate)

withr::defer(
  {
    # write.table(ShiftsWorked, file = "tests/testthat/test_data/ShiftsWorked.tsv", row.names=FALSE, sep="\t")
    # write.csv(ShiftsWorked, "tests/testthat/test_data/ShiftsWorked.csv")
    # openxlsx::write.xlsx(ShiftsWorked, "tests/testthat/test_data/ShiftsWorked.xlsx")
  }, 
  teardown_env()
)

readr::write_excel_csv

Try the deident package in your browser

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

deident documentation built on April 3, 2025, 6:14 p.m.