Skip to content

Commit

Permalink
fixup! fix(colformat_md): follow internal change of flextable data st…
Browse files Browse the repository at this point in the history
…ructure
  • Loading branch information
atusy committed Mar 31, 2024
1 parent aaa23ad commit a78d3ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BugReports: https://github.com/atusy/ftExtra/issues
Imports:
dplyr (>= 1.0.0),
jsonlite,
flextable (>= 0.8.3),
flextable (>= 0.9.5),
tidyr,
purrr (>= 1.0.0),
magrittr,
Expand Down
7 changes: 1 addition & 6 deletions R/colformat.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ colformat_md <- function(x,
}

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

Expand Down

0 comments on commit a78d3ef

Please sign in to comment.