R/testsuite.R

Defines functions test_wb_ft

test_wb_ft <- function(wb, ft, filename) {
  test_path <- Sys.getenv("flexlsxtestdir")

  # For local development testing only
  if (test_path != "") {
    wb$save(paste0(
      test_path,
      filename,
      ".xlsx"
    ))
    flextable::save_as_html(ft, path = paste0(
      test_path,
      filename,
      ".html"
    ))
  }
}

Try the flexlsx package in your browser

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

flexlsx documentation built on April 4, 2025, 2:13 a.m.