exportFlextableToDocx {inTextSummaryTable}R Documentation

Export flextable to docx file

Description

Export flextable to docx file

Usage

exportFlextableToDocx(
  object,
  file,
  landscape = FALSE,
  breaksAfter = if (!inherits(object, "flextable")) seq_along(object) else 1
)

Arguments

object

flextable object, or list of such objects

file

String with path of the file where the table should be exported. The file should have the extension: '.html'. If NULL, the summary table is not exported but only returned as output. If byVar is specified, each table is exported to a separated file with the suffix: 'file_[i].html' with i the index of the file.

landscape

(flextable output) Logical, if TRUE the file is in landscape format.
By default: FALSE if style is 'report' and TRUE if style is 'presentation'.

breaksAfter

In case object is list: integer vector with indices of list item after which a page break should be included in the final document.

Value

no returned value, the object is exported to a docx file.

Author(s)

Laure Cougnaud


[Package inTextSummaryTable version 3.3.3 Index]