Skip to content

Commit

Permalink
Update R/utils.R
Browse files Browse the repository at this point in the history
Co-authored-by: André Veríssimo <[email protected]>
Signed-off-by: kartikeya kirar <[email protected]>
  • Loading branch information
kartikeyakirar and averissimo authored Sep 15, 2023
1 parent 1705ffd commit d550252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ to_flextable <- function(content) {
ft <- flextable::width(ft, width = width_vector)
} else if (inherits(content, "data.frame")) {
ft <- flextable::flextable(content)
} else {
stop(paste0("Unsupported class `(", format(class(content)), ")` when exporting table")
}

ft <- custom_theme(ft)
Expand Down

0 comments on commit d550252

Please sign in to comment.