Skip to content

Commit

Permalink
Right align columns
Browse files Browse the repository at this point in the history
  • Loading branch information
izaak-jephson committed Dec 5, 2024
1 parent 3f7a38d commit 3d613bb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/export_tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ format_columns <- function(wb,
gridExpand = TRUE
)



} else {
openxlsx::addStyle(wb, sheet_name,
rows = start_row:end_row,
cols = column,
style = openxlsx::createStyle(halign = "right"),
gridExpand = TRUE
)
}
# Format GBP columns
if (stringr::str_detect(colnames(table[column]), "[Vv]alue")) {
Expand Down

0 comments on commit 3d613bb

Please sign in to comment.