knitr 1.33
NEW FEATURES
-
Exported the internal functions
sew()
(previously namedwrap()
) andis_low_change()
to make it possible for other graphics systems such as rgl to work in knitr like base and grid graphics in base R (thanks, @dmurdoch, #1892 #1853). -
For
sql
code chunks, parameterized queries will be executed through native database api if the chunk optionparams
is provided (thanks, @byapparov, #1987).
BUG FIXES
- Reverted the fix for #1595 since it caused problems in kableExtra (thanks, @bttomio, haozhu233/kableExtra#607), and applied a different fix to the original problem (i.e., add
{}
before[
).
MAJOR CHANGES
- The internal S3 generic function
wrap()
has been renamed tosew()
.
MINOR CHANGES
-
For package vignettes that use the vignette engine
knitr::docco_linear
orknitr::docco_classic
, knitr will signal an error duringR CMD build
if the markdown package is not declared as a soft dependency in theSuggests
field inDESCRIPTION
. The same treatment has been applied in the previous version of knitr for the vignette engineknitr::knitr
(#1864). -
R CMD build
will signal an error when a package uses R Markdown vignettes to be build with the rmarkdown package but the rmarkdown package is not installed (thanks, @nsheff, #1864). -
The
force_v1
argument ofknit2html()
defaults togetOption('knitr.knit2html.force_v1', FALSE)
now, which means its value can be configured via a global option.