Skip to content

Commit

Permalink
fix(colformat_md): follow internal change of flextable data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
atusy committed Mar 30, 2024
1 parent 862c502 commit aaa23ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/colformat.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ colformat_md <- function(x,
}

dataset <- x[[part]]$dataset
content <- x[[part]][["content"]][["content"]][["data"]]
content <- if (is.null(x[[part]][["content"]][["content"]])) {
# flextable >= 0.9.5
x[[part]][["content"]][["data"]]
} else {
x[[part]][["content"]][["content"]][["data"]]
}
nm <- colnames(content)
col <- tidyselect::eval_select(rlang::expr(c(!!.j)), dataset[nm])

Expand Down

0 comments on commit aaa23ad

Please sign in to comment.