In this talk, I will highlight a few selected new features of the knitr package
introduced in the past two years including: 1) the new way to write chunk
options as "#|" comments in the chunk body; 2) new ways to reuse both chunk body
and chunk options from another code chunk; 3) a few useful new engines, namely
comment (comment out arbitrary content), verbatim (write arbitrary verbatim
content), embed (embed external files and display their content verbatim), and
exec (execute an arbitrary command); and 4) a few new chunk options such as
file (to include external files as the chunk body) and lang. Hopefully these
new features can help both knitr users and developers make better use of knitr.
Yihui Xie is a software engineer at RStudio. He earned his PhD from the Department of Statistics, Iowa State University. He has authored and co-authored several R packages, such as knitr, rmarkdown, bookdown, blogdown, and xaringan. He has published a number of books, including “Dynamic Documents with R and knitr”, “bookdown: Authoring Books and Technical Documents with R Markdown”, “blogdown: Creating Websites with R Markdown”, “R Markdown: The Definitive Guide”, and “R Markdown Cookbook.”