write_clintable: Clintable write method

View source: R/write.R

write_clintableR Documentation

Clintable write method

Description

Write a clinify table out to a docx file

Usage

write_clintable(x, file, apply_defaults = TRUE)

Arguments

x

a clintable object

file

The file path to which the file should be written

apply_defaults

Apply default styles. These styles are stored in the options clinify_header_default, clinify_footer_default, and clinify_table_default respectively. Defaults to true.

Value

Invisible

Examples

ct <- clintable(mtcars)

ct <- clin_alt_pages(
  ct,
  key_cols = c('mpg', 'cyl', 'hp'),
  col_groups = list(
    c('disp', 'drat', 'wt'),
    c('qsec', 'vs', 'am'),
    c('gear', 'carb')
  )
)

write_clintable(ct, file.path(tempdir(), 'demo.docx'))


clinify documentation built on April 12, 2025, 1:45 a.m.