knitr 1.39
MAJOR CHANGES
- Added an argument
rel_path
toinclude_graphics()
, which defaults toTRUE
, 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 userel_path = FALSE
or set the global optionoptions(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 optionknitr::opts_knit$set(latex.options.xcolor = 'OPTIONS')
whereOPTIONS
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).