preview_eq: Preview an equation in a web browser

View source: R/print.R

preview_eqR Documentation

Preview an equation in a web browser

Description

Preview 'LaTeX' equations built with extract_eq.

Usage

preview_eq(x, ...)

Arguments

x

'LaTeX' equation built with extract_eq

...

not used

Value

The path to the temporary html file that was created to preview the equation is returned invisibly.

Examples

if (interactive()) {
  mod1 <- lm(mpg ~ cyl + disp, mtcars)
  eq1 <- extract_eq(mod1)
  eq1 # Not that nice
  preview_eq(eq1)
  # or easier...
  preview_eq(mod1)
}

equatiomatic documentation built on Aug. 26, 2025, 9:08 a.m.