Skip to content

Commit

Permalink
Update style of tables in write_to_xlsx().
Browse files Browse the repository at this point in the history
  • Loading branch information
bschneidr committed Oct 19, 2020
1 parent 5d6f3f8 commit eebd2a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/write_to_xlsx.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ write_to_xlsx <- function(x, wb_name = NULL, open_wb = TRUE) {
# Write the data (If the content is a dataframe, write as a table)
if (is.data.frame(content_list[[content_index]])) {
openxlsx::writeDataTable(wb, sheet = sheet_name,
x = content_list[[content_index]])
x = content_list[[content_index]],
tableStyle = "TableStyleMedium16")
} else {
openxlsx::writeData(wb, sheet = sheet_name,
x = content_list[[content_index]])
Expand Down

0 comments on commit eebd2a4

Please sign in to comment.