Skip to content

knitr 1.25

Compare
Choose a tag to compare
@yihui yihui released this 18 Sep 12:35
· 682 commits to master since this release

NEW FEATURES

  • Office outputs (e.g., rmarkdown::word_document) supports the following chunk options out.width, out.height, out.extra. Their behavior follows the behavior of Pandoc's link_attributes extention (thanks, @atusy, #1746).

  • The chunk option fig.process can be specified by a function with the options argument to read chunk options (thanks, @atusy, #1749).

  • For kable(format = 'latex'), a single string consisting of l, c, and r for the align argument also works now, e.g., knitr::kable(head(iris), 'latex', align = 'llcrr'). Previously it has to be a character vector of individual letters.

MAJOR CHANGES

  • Reverted #1519 (which intended to fix #1487): the valign argument of kable(format = 'latex') meant to control the vertical alignment of the inner tabular environment, instead of the floating position of the outer table environment. A separate argument named position has been added to control the floating position (e.g., position = "!b").

MINOR CHANGES

  • The returned value of combine_words() is wrapped in xfun::raw_string() for pretty printing.

BUG FIXES