powered by
Preview spork after conversion to latex. Creates and displays a temporary png file, after conversion from pdf using ghostconvert.
ghostconvert
# S3 method for latex as_preview( x, wide = 70, long = 20, stem = "latex_preview", dir = tempdir(), gs_cmd = getOption("gs_cmd", "mgs"), morePreamble = ifelse(getOption("spork_upgreek", TRUE), "\\usepackage{upgreek}\n", NULL), prolog = "\\begin{center}", epilog = "\\end{center}", ... )
invisible filepath
spork; see as_spork
as_spork
nominal page width
nominal page length
a working directory; see as.pdf
as.pdf
ghostscript command; see ghostconvert
additional text to insert in preamble; passed to as.pdf
passed to as.document
as.document
passed arguments
Other preview: as.png.plotmath(), as.png.spork(), as_preview(), as_preview.html(), as_preview.plotmath(), as_previews(), as_previews.default(), as_previews.spork(), ggplot.plotmath(), ggplot.spork()
as.png.plotmath()
as.png.spork()
as_preview()
as_preview.html()
as_preview.plotmath()
as_previews()
as_previews.default()
as_previews.spork()
ggplot.plotmath()
ggplot.spork()
# \donttest{ # library(magrittr) # 'one joule (Omega) ~ 1 kg*m^2./s^2' %>% # as_spork %>% # as_latex %>% #as_preview # }
Run the code above in your browser using DataLab