Skip to content
Prev 387221 / 398502 Next

ISO recommendations for plot output format from R to MS Word / tangential

FWIW, even in Rmarkdown images sometimes give trouble. However, there is the possibilty
of asking to keep the latex version of the document after Rmarkdown has been processed.
That is, in the yaml header there is the "output" section

output:
  pdf_document:
    keep_tex: false
    toc: true

Here I have kept_tex NOT active. Change false to true and a .tex file will be produced.
I've found this useful to adjust images and a few other things. Mostly I am happy with
Rmarkdown output, and I have to say such tweaks are quite rare, though I have once or
twice used this feature to track down some non-printing characters in code chunks when
the Rmarkdown processing was fine, but pdflatex choked.

Possibly it is easier to do Latex --> Word. Like many others in the R community, I find
Word an unfortunate annoyance, in particular because I can never be sure really what
is present in a "doc"ument.

Best, J Nash
On 2021-02-18 2:16 p.m., Kevin Thorpe wrote: