Learn R Programming

spork (version 0.3.5)

as_preview: Preview Something

Description

Creates a preview. Generic, with methods as_preview.latex and as_preview.plotmath.

Usage

as_preview(x, ...)

Value

see methods

Arguments

x

object

...

passed arguments

See Also

Other preview: as.png.plotmath(), as.png.spork(), as_preview.html(), as_preview.latex(), as_preview.plotmath(), as_previews(), as_previews.default(), as_previews.spork(), ggplot.plotmath(), ggplot.spork()

Examples

Run this code
library(magrittr)
'V_c./F' %>% as_spork %>% as_plotmath %>% as_preview
# \donttest{
# 'V_c./F' %>% as_spork %>% as_latex %>% as_preview
# }
'one joule (Omega) ~ 1 kg*m^2./s^2' %>% as_spork %>% as_plotmath %>% as_preview
# \donttest{
# 'one joule (Omega) ~ 1 kg*m^2./s^2' %>% as_spork %>% as_latex %>% as_preview
# }

Run the code above in your browser using DataLab