rmarkdown 2.0
-
For the output format
pdf_document()
, we no longer adjust the vertical spacing of the title area. This means there will be a larger spacing above the document title in PDF. If you prefers the old (smaller) spacing, please download https://github.com/rstudio/rmarkdown/blob/f6961af/inst/rmd/latex/compact-title.tex and include it to the preamble via theincludes
option ofpdf_document
. However, please note that this means you won't be able to have multiple authors in theauthor
field of the YAML frontmatter, unless you use a custom LaTeX template. With the default LaTeX template, you will run into the error in #1716. Besides, thecompact-title
option in YAML is no longer supported. -
R code in the
header-includes
field in the YAML frontmatter stopped working in the previous version of rmarkdown. The code should be evaluated before passing to Pandoc (thanks, @mcol #1709, @cderv #1710). -
The
encoding
argument is no longer passed to theintermediates_generator
of R Markdown output formats. Theintermediates_generator
function can only accept argumentsinput_file
andintermediates_dir
now (see?rmarkdown::output_format
). This is a breaking change to developers. If you are an output format developer, you have to remove theencoding
argument in yourintermediates_generator
if your output format uses this function. -
The
encoding
argument is no longer passed to therender
element of the site generator (see?rmarkdown::render_site
). -
The
encoding
argument has been removed from many of the internal functions in the rmarkdown package. Now all input files are assumed to be encoded in UTF-8. If you see an error message like "Error inFUN(arg = ...)
: unused argument (arg = ...
)", please file an issue (with a reproducible example) to https://github.com/rstudio/rmarkdown. -
Added a new output format
context_document()
to support ConTeXT output (thanks, @RLesur #1725, @jooyoungseo #1713). -
render_site()
can render R scripts in addition to Rmd files if you setautospin: true
in_site.yml
(thanks, @zeehio, #1564). -
Added
ext
argument tomd_document()
. Its default value is ".md". This argument is intended to be used together withvariant
argument (e.g.,variant = "context"
andext = ".pdf"
) (thanks, @atusy, #1715). -
ioslides_presentation()
stylesheet is updated for printing. Browsers are notified that the presentation should preferentially be printed in landscape orientation and without margin (thanks, @RLesur, #1718). -
Reverted the fix #1703 and applied an alternative fix to #1700, because the original fix brought a new bug #1714 (thanks, @pablobernabeu @cderv @everron @aronatkins).
-
Tabsets don't work with Pandoc 2.8 (thanks, @mnazarov, #1723).
-
The
pdf_document
format failed to work if theheader-includes
field in YAML is an empty list (thanks, @cderv, #1728).