Skip to content

Latest commit

 

History

History
2583 lines (1340 loc) · 191 KB

NEWS.md

File metadata and controls

2583 lines (1340 loc) · 191 KB

CHANGES IN knitr VERSION 1.47

NEW FEATURES

  • For kable(), you can set the global option knitr.kable.max_rows to limit the number of rows to show in the table, e.g., options(knitr.kable.max_rows = 30). This is a way to prevent kable() from generating a huge table from a large data object by accident.

  • write_bib() now escapes all non-escaped "&" in the bibliography by default. Previously, it only escaped the title field of the package citation. You can disable the escape with the argument tweak = FALSE (thanks, @HedvigS #2335, @atusy #2342).

CHANGES IN knitr VERSION 1.46

NEW FEATURES

  • Added a new chunk option tab.cap to specify the table caption for kable() (thanks, @ulyngs, #1679). Previously, the caption could only be specified via the caption argument of kable(). Now you can set it in the chunk header if you want. Please note that this chunk option only works with a single kable() in each code chunk, and its value must be of length 1.

  • spin() now recognizes # %% as a valid code chunk delimiter (thanks, @kylebutts, #2307).