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"), prolog = "\\begin{center}", epilog = "\\end{center}", ... )
spork; see as_spork
as_spork
nominal page width
nominal page length
a working directory; see as.pdf
as.pdf
ghostscript command; see ghostconvert
passed to as.document
as.document
passed arguments
invisible filepath
Other preview: as.png.plotmath(), as.png.spork(), as_preview.plotmath(), as_previews.spork(), as_previews(), as_preview(), ggplot.plotmath(), ggplot.spork()
as.png.plotmath()
as.png.spork()
as_preview.plotmath()
as_previews.spork()
as_previews()
as_preview()
ggplot.plotmath()
ggplot.spork()
# NOT RUN { 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