preview_eq | R Documentation |
Preview 'LaTeX' equations built with extract_eq
.
preview_eq(x, ...)
x |
'LaTeX' equation built with |
... |
not used |
The path to the temporary html file that was created to preview the equation is returned invisibly.
if (interactive()) {
mod1 <- lm(mpg ~ cyl + disp, mtcars)
eq1 <- extract_eq(mod1)
eq1 # Not that nice
preview_eq(eq1)
# or easier...
preview_eq(mod1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.