Displaying 1 result from an estimated 1 matches for "rweavelatexemf".
2011 Mar 23
3
Sweave: multiple graphic formats, e.g. win.metafile
...ue, pdf=true, emf=true>>
# code which generates the graphic
@
SweaveHooks are not applicable for this feature. Therefore, I thought it would be best to extend the typical 'RweaveLatex' driver by an option 'emf' - like eps and pdf. So, here is the result of some handicrafts:
RweaveLatexEMF <- function ()
{
# add option emf (= FALSE) and set default for eps to FALSE
setup <- utils::RweaveLatexSetup
setupsrc <- deparse(setup)
epsline <- grep("eps", setupsrc)
setupsrc[epsline] <- sub("eps = TRUE", "eps = FALSE, emf = FALSE", setupsrc[eps...