Skip to content

Commit a88b28a

Browse files
committed
fix
1 parent 05b0b96 commit a88b28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/write-excel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ write_temp_excel <- function(dat, name, font = "Arial") {
2727
dat <- dplyr::rename(dat, dplyr::all_of(label_column(dat)))
2828
wb$add_data(x = dat, na.strings = "")
2929
wb$set_base_font(font_name = "Arial")
30-
wb$add_cell_style(dims = wb_dims(x = df, select = "col_names"), wrap_text = TRUE)
30+
wb$add_cell_style(dims = openxlsx2::wb_dims(x = dat, select = "col_names"), wrap_text = TRUE)
3131
wb$set_col_widths(widths = "auto", cols = seq_along(names(dat)))
3232

3333
# wb$add_cell_style(

0 commit comments

Comments
 (0)