One Little Thing: The Docco Style with knitr::rocco()

1 · Yihui Xie · June 3, 2021, midnight
Miles McBain learned the Docco style in knitr by chance when he meant to ask about getParseData(). This HTML style is lesser known but one of my personal favorite styles. I have used it in a few package vignettes such as the highr vignette. The style is based on Docco, and the code was mainly contributed by Weicheng Zhu in 2013. To render an R Markdown document to this style, you may call: knitr::rocco('test.Rmd') Note that the R Markdown document should be an old-fashioned one, i.e., to be ren...