Knitrhooks Save

Extend {knitr} with hooks

Project README

knitrhooks

knitrhooks provides useful knitr hooks to extend the functionality of knitr, Rmarkdown and bookdown.

Available Hooks

The below table details the hooks currently available within the package. Some hooks are only available for particular output formats.

hook name description HTML PDF
output_lines Print user specified lines of R output X X
output_max_height Add a scrollbar to output of a given height X
source_verbatim Print verbatim code chunks X X
chunk_head Print chunk headers within outputs X X

Usage

Currently the package requires you to load the functionality of each given hook before you can use it. Alternative solutions are currently being considered.

```{r max_height_example}
library(knitrhooks)
output_max_height()
```

# Example document

```{r output_max_height = "300px"}
print(mtcars)
```

The above code will produce the following HTML document.

scrollable_r_output

Open Source Agenda is not affiliated with "Knitrhooks" Project. README Source: nathaneastwood/knitrhooks
Stars
33
Open Issues
11
Last Commit
5 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating