NEW FEATURES
-
In-chunk references of the form
<<label>>
can be disabled via the chunk optionref.chunk = FALSE
now (thanks, @jennybc @gadenbuie, #2360). -
Added support for
fig.alt
for LaTeX output, i.e., using\includegraphics[alt={alt text}]
(thanks, @capnrefsmmat, #2378). -
The environment in which code chunks are evaluated can be changed by passing a custom environment to
knit_global()
now (thanks, @abhsarma, #2358).
BUG FIXES
-
In-chunk references of the form
<<label>>
should not be resolved iflabel
is not found in the document (thanks, @jennybc @gadenbuie, #2360). -
The chunk option
autodep = TRUE
stopped working due to a regression from #2321 (thanks, @heavywatal #2344, @atusy #2377). -
asis_output()
was not passed to theoutput
hook (thanks, @cderv, #2332). -
Avoid partial matching of the
Date/Publication
field when generatingcitation('knitr')
, otherwise R will emit a warning whenoptions(warnPartialMatchDollar = TRUE)
(thanks, @fkohrt, #2361).
MAJOR CHANGES
-
Unbalanced chunk delimiters (fences) in R Markdown documents are strictly prohibited now.
-
For code chunks with
error = TRUE
,purl()
andhook_purl()
will wrap the code intry({...})
(thanks, @bastistician #2338, @jeroen #2368).
MINOR CHANGES
-
If a character value is passed to the chunk option
message
orwarning
, it will be coerced byas.logical()
, e.g., a character string"NA"
will be coerced toNA
(thanks, @cderv, #2375). -
Issue a warning when the chunk option
dependson
receives an invalid value (thanks, @otoomet, #2376). -
Changed the format of the reference card from PDF to HTML so building this package will not require LaTeX. See
vignette('knitr-refcard', package = 'knitr')
. -
Switched the vignette engine from knitr to
litedown::vignette
for some package vignettes.