Skip to content

Commit

Permalink
Update table2office.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwenseleers committed Nov 14, 2022
1 parent 1afc8e2 commit 2896d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/table2office.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ table2office = function(x = NULL, file = "Rtable", type = c("PPT","DOC"), append
cell.width <- min(w, pagesize["width"] - offx)/(nc+1)

if(inherits(tab,"xtable")){
tab <- xtable_to_flextable(tab, include.rownames = add.rownames, rowname_col = ".")
tab <- as_flextable(tab, include.rownames = add.rownames, rowname_col = ".")
tab <- width(tab, width=cell.width)
tab <- height(tab, height=cell.height)
} else {
Expand Down

0 comments on commit 2896d56

Please sign in to comment.