Skip to content

Commit

Permalink
[styles_across] allow passing wb_dims() to rows and cols
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Dec 12, 2023
1 parent 449d3fc commit 379b11e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/class-workbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,9 @@ wbWorkbook <- R6::R6Class(
styid <- self$get_cell_style(dims = from, sheet = sheet)

if (!is.null(rows)) {
if (is.character(rows)) # row2int
rows <- as.integer(dims_to_rowcol(rows)[[2]])

dims <- wb_dims(rows, "A")
cells <- unname(unlist(dims_to_dataframe(dims, fill = TRUE)))
cc <- self$worksheets[[sheet]]$sheet_data$cc
Expand Down

0 comments on commit 379b11e

Please sign in to comment.