as_preview: Preview Something

View source: R/preview.R

as_previewR Documentation

Preview Something

Description

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

Usage

as_preview(x, ...)

Arguments

x

object

...

passed arguments

Value

see methods

See Also

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

Examples

library(magrittr)
'V_c./F' %>% as_spork %>% as_plotmath %>% as_preview

# 'V_c./F' %>% as_spork %>% as_latex %>% as_preview

'one joule (Omega) ~ 1 kg*m^2./s^2' %>% as_spork %>% as_plotmath %>% as_preview

# 'one joule (Omega) ~ 1 kg*m^2./s^2' %>% as_spork %>% as_latex %>% as_preview


spork documentation built on Sept. 16, 2023, 9:06 a.m.

Related to as_preview in spork...