wb <- as_Workbook(jams)
if (FALSE) {
openxlsx::saveWorkbook(
wb,
"my-excel-file.xlsx"
)
}
# multiple sheets in a single workbook:
wb <- openxlsx::createWorkbook()
wb <- as_Workbook(jams,
Workbook = wb, sheet = "sheet1"
)
wb <- as_Workbook(
hux("Another", "huxtable"),
Workbook = wb,
sheet = "sheet2"
)
Run the code above in your browser using DataLab