In my R Markdown documents, I sometimes want to just generate a report without showing the actual code (specially when I send it to my boss). How can I hide the R code and just show the graph and results?
For example:
---
output: html_document
---
```{r fig.width=16, fig.height=6}
plot(cars)
```
This shows both the commands and the plot. How can I remove the commands from my HTML report?
Sure, just do
to show some (previously computed) variable
someVariable. Or run code that prints etc pp.So for plotting, I have eg
where the plotting function
plotResultsis from a local package.