- #Rmarkdown print variable generator#
- #Rmarkdown print variable Patch#
- #Rmarkdown print variable code#
Rmarkdown::run(file = NULL, dir = "foo/") failed to run Rmd files under the foo/ directory (thanks, #1703).
#Rmarkdown print variable Patch#
The pdf_document format failed to work if the header-includes field in YAML is an empty list (thanks, #1728).įor pdf_document(), now we patch Pandoc’s built-in LaTeX template to include the document subtitle (unnecessary with pandoc 2.6 onwards) and reduce the vertical spacing before title using -include-in-header rather than overwriting the built-in template, avoiding compability problems with newer versions of Pandoc (thanks, #1563).įind_external_resources() works now when multiple files are specified in the includes option of the output format (thanks, #1677).įind_external_resources() can find external resources specified in the output format’s reference_doc or reference_docx option now (thanks, #1696). Reverted the fix #1703 and applied an alternative fix to #1700, because the original fix brought a new bug #1714 (thanks, don’t work with Pandoc 2.8 (thanks, #1723). Browsers are notified that the presentation should preferentially be printed in landscape orientation and without margin (thanks, #1718). Ioslides_presentation() stylesheet is updated for printing. This argument is intended to be used together with variant argument (e.g., variant = "context" and ext = ".pdf") (thanks, #1715).
Render_site() can render R scripts in addition to Rmd files if you set autospin: true in _site.yml (thanks, #1564).Īdded ext argument to md_document(). Īdded a new output format context_document() to support ConTeXT output (thanks, #1725, #1713). )”, please file an issue (with a reproducible example) to. If you see an error message like “Error in FUN(arg =. Now all input files are assumed to be encoded in UTF-8.
The encoding argument has been removed from many of the internal functions in the rmarkdown package.
#Rmarkdown print variable generator#
The encoding argument is no longer passed to the render element of the site generator (see ?rmarkdown::render_site). If you are an output format developer, you have to remove the encoding argument in your intermediates_generator if your output format uses this function. The intermediates_generator function can only accept arguments input_file and intermediates_dir now (see ?rmarkdown::output_format). The encoding argument is no longer passed to the intermediates_generator of R Markdown output formats.
#Rmarkdown print variable code#
The code should be evaluated before passing to Pandoc (thanks, #1709, #1710). R code in the header-includes field in the YAML frontmatter stopped working in the previous version of rmarkdown. Besides, the compact-title option in YAML is no longer supported. With the default LaTeX template, you will run into the error in #1716.
However, please note that this means you won’t be able to have multiple authors in the author field of the YAML frontmatter, unless you use a custom LaTeX template. If you prefers the old (smaller) spacing, please download and include it to the preamble via the includes option of pdf_document. This means there will be a larger spacing above the document title in PDF. For the output format pdf_document(), we no longer adjust the vertical spacing of the title area.