Skip to contents

wb_save_ext() is a helper function that fills in the file name when saving based on the XSLX title. This function is not stable and may change in the future.

Usage

wb_save_ext(wb, file = NULL, ...)

Arguments

wb

A wbWorkbook object to write to file

file

A path to save the workbook to

Examples


library(openxlsx2)

withr::with_tempdir({
  wb_workbook(
    title = "Title used for output file"
  ) |>
    wb_add_worksheet() |>
    wb_save_ext()

  fs::dir_ls()
})
#> Title used for output file.xlsx