chunk_head: Print code chunk headers

Description Usage Details Examples

View source: R/hooks.R

Description

View the code chunk "asis" along with the chunk output.

Usage

1

Details

To run this hook, call the chunk_head() function and then you can either print all source code as verbatim chunks. This function performs a similar function to source_verbatim(), but this version will keep the code within the shaded code environment.

1
2
3
```{r, chunk_head = TRUE}
print(mtcars)
```

Examples

1

nathaneastwood/knitrhooks documentation built on May 4, 2019, 3:18 p.m.