diff --git a/DESCRIPTION b/DESCRIPTION index 2aa97ec..b4921ba 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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, diff --git a/R/colformat.R b/R/colformat.R index 05040b9..63dbd4e 100644 --- a/R/colformat.R +++ b/R/colformat.R @@ -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])