With 2021 behind us, I want to highlight some news in the knitr package from the last quarter of the last year.

An alternative syntax for chunk options

Chunk options used to be written inside {} in the chunk header, which can be hard to read when there are too many options, or certain options take too long (character) values. For example:

```{r rmdworkflow, echo = FALSE, …