Skip to content

knitr 1.39

Compare
Choose a tag to compare
@yihui yihui released this 27 Apr 02:07
· 303 commits to master since this release

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).

MINOR CHANGES

  • For knitr source documents that generate .tex output documents (such as .Rnw and .Rtex), the LaTeX package xcolor will be used instead of color (#2085). This may cause option clashes if xcolor is already loaded by users with options, e.g., \usepackage[dvipsnames]{xcolor}. If this happens, you may set the package option knitr::opts_knit$set(latex.options.xcolor = 'OPTIONS') where OPTIONS is the options you used for xcolor, e.g., dvipsnames.

  • The evaluation of chunk options written after #| using the YAML !expr syntax will be delayed until before the chunk is to be evaluated (#2120).