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