| 1 |
--- |
| 2 |
title: R Markdown with the Docco Classic Style |
| 3 |
author: Yihui Xie |
| 4 |
date: "`r Sys.Date()`" |
| 5 |
--- |
| 6 |
|
| 7 |
<!-- |
| 8 |
%\VignetteEngine{knitr::docco_classic_notangle} |
| 9 |
%\VignetteIndexEntry{R Markdown with the Docco Classic Style} |
| 10 |
--> |
| 11 |
|
| 12 |
```{r setup, echo=FALSE, results='asis'} |
| 13 |
x = readLines('docco-linear.Rmd')[-(1:11)] |
| 14 |
x = gsub('linear', 'classic', x) |
| 15 |
i = grep('^knitr:::docco_classic', x) |
| 16 |
x[i - 1] = '```{r}' |
| 17 |
x[i] = 'knitr::rocco' |
| 18 |
library(knitr) |
| 19 |
cat(knit_child(text = x, quiet = TRUE), sep = '\n') |
| 20 |
``` |
| 21 |
|
| 22 |
You probably have noticed that you can adjust the widths of the two columns |
| 23 |
using your cursor. What is more, press `T` on your keyboard, and see what |
| 24 |
happens. |