Landscape PDF from rmarkdown

When converting R Markdown to PDF, we can use a lot of variables for the LaTeX template. This short example shows the classoption variable that takes the value landscape to produce PDF in the landscape orientation.

str(cars)
summary(lm(dist~speed, cars))

Please read the documentation of Pandoc for other possible variables.



Try the parsermd package in your browser

Any scripts or data that you put into this service are public.

parsermd documentation built on May 20, 2021, 5:08 p.m.