This function is a wrapper foropenxlsx::saveWorkbook(), but can also open the Excel file immediately after saving.

save_wb(
  wb,
  file = here::here("untitled.xlsx"),
  overwrite = FALSE,
  open_file = TRUE,
  ...
)

Arguments

wb

A Workbook object to write to file

file

A character string naming an xlsx file

overwrite

If TRUE, overwrites the previous excel file

open_file

If TRUE, opens the excel file after it was created

...

Other arguments passed toopenxlsx::saveWorkbook()