Learn R Programming

equatiomatic (version 0.4.4)

preview_eq: Preview an equation in a web browser

Description

Preview 'LaTeX' equations built with extract_eq.

Usage

preview_eq(x, ...)

Value

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

Arguments

x

'LaTeX' equation built with extract_eq

...

not used

Examples

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

Run the code above in your browser using DataLab