use_model_printer: Set automatic flextable printing for models

View source: R/as_flextable.R

use_model_printerR Documentation

Set automatic flextable printing for models

Description

Define as_flextable() as print method in an R Markdown document for models of class:

  • lm

  • glm

  • models from package 'lme' and 'lme4'

  • htest (t.test, chisq.test, ...)

  • gam

  • kmeans and pam

In a setup run chunk:

flextable::use_model_printer()

Usage

use_model_printer()

See Also

use_df_printer(), flextable()

Other flextable configuration: add_latex_dep(), use_df_printer(), use_flextable_qmd()


flextable documentation built on June 2, 2026, 9:08 a.m.