Skip to contents

Internal function called by ftwrite to handle writing of individual flextable objects. Generally not called directly by users.

Usage

ftwriteOne(
  ft,
  file,
  formats,
  save = TRUE,
  show = !save,
  quiet = FALSE,
  script,
  time,
  model,
  stamp.ft.style,
  fun.path,
  subdir,
  stamp.format = NULL,
  stamp.funs = NULL
)

Arguments

ft

A flextable object to write.

file

Character string, base file name (without extension).

formats

Character vector of output format(s). See ftwrite.

save

Logical, whether to save to file. Default TRUE.

show

Logical, whether to display the table. Default !save.

quiet

Logical, suppress messages. Default FALSE.

script

Character string, path to script for stamping.

time

Character string or POSIXct, timestamp for stamping.

model

Character string or model object, model identifier for stamping.

stamp.ft.style

Format specification for stamp. Passed to ftstamp.

fun.path

Function for constructing file paths. See pathFormat.

subdir

Character string, subdirectory for outputs.

stamp.format, stamp.funs

Passed to ftstamp.

Value

If show = TRUE, returns the flextable object (possibly stamped). Otherwise returns invisibly a list of file paths written.

See also