I\'m trying to generate an HTML report using RStudio, R Markdown and knitr. In the report I would like to display some bash code. I do not want to run the code
bash
The default syntax highlighting theme does not work well for non-R code chunks, and you can use other themes, e.g. pygments
pygments
--- title: "Bash Highlighting" output: html_document: highlight: pygments --- ```{r, engine = 'bash', eval = FALSE} for foo in (ls bar) do echo $foo done ```