472b8d0a66
https://github.com/yihui/knitr/releases knitr 1.40 24 Aug 15:39 NEW FEATURES * Added a function convert_chunk_header() to convert the old in-header chunk options to the new in-body chunk options (#2149 #2151). * Added a new "graphics device", dev = "gridSVG", which uses gridSVG::grid.export() to export grid graphics to SVG (thanks, @jooyoungseo , #2152). * Added a new engine eviews, which calls the EviewsR package to execute EViews code (thanks, @sagirumati, #2158). * Added support for a php engine like other engines for interpreted languages. It will call php -r <code>, with <code> being the chunk content (thanks, @ralmond, #2144). * Per suggestion of @jakubkaczor (#2116) and discussion with @pedropark99 (# 2140), the chunk option fig.sep can also be used to add LaTeX code before the first sub-figure now. Previously this option can only be used for adding LaTeX code after each sub-figure. * knitr::kable() supports tabularx and xltabular environments now for LaTeX tables, e.g., knitr::kable(head(iris), format = 'latex', tabular = 'tabularx') (thanks, @amarakon, #2138). * For HTML output formats of R Markdown, SVG plots (e.g., in case of chunk option dev = 'svg' or dev = 'gridSVG') can be embedded differently now when options(knitr.svg.object = TRUE): if the HTML output is self-contained, the raw SVG code will be embedded directly in HTML, otherwise the .svg file is embedded in the <object> tag. By default, this feature is not enabled, i.e., the default is options(knitr.svg.object = FALSE) for backward-compatibility, which means the <img> tag is used for SVG plots just like other plot formats. This new feature will make assistive technology agents, such as screen readers, interact with SVG plots (thanks, @jooyoungseo, #2152). knitr 1.39 27 Apr 02:07 MAJOR CHANGES * Added an argument rel_path to include_graphics(), which defaults to TRUE, meaning that this function will try to convert absolute paths to relative paths automatically. If the conversion fails, it will issue a warning. If you want to suppress the conversion (and the warning), you may use rel_path = FALSE or set the global option options(knitr.graphics.rel_path = FALSE). In the previous version of knitr, this function would always issue a warning when it detects absolute paths (thanks, @davidski @kendavidn, #2119 ). |
||
---|---|---|
.. | ||
DESCR | ||
distinfo | ||
Makefile |