mt_save: Save a melliotab table to file

View source: R/save.R

mt_saveR Documentation

Save a melliotab table to file

Description

Auto-detects the format from the file extension.

Usage

mt_save(x, filename, ...)

Arguments

x

A melliotab object

filename

Output file path. Supported extensions: .html, .tex, .md

...

Additional arguments passed to format-specific functions

Value

Invisible file path

Examples

model <- lm(mpg ~ wt + hp, data = mtcars)
tbl <- melliotab(model, style = "apa7", title = "Results")

html_file <- tempfile(fileext = ".html")
tex_file <- tempfile(fileext = ".tex")
md_file <- tempfile(fileext = ".md")

mt_save(tbl, html_file)
mt_save(tbl, tex_file)
mt_save(tbl, md_file)

mellio documentation built on Aug. 30, 2026, 1:06 a.m.