ryp
ryp

Reputation: 37

R Markdown refuses to suppress code chunk output

I am trying to suppress a lattice density plot, while showing the code chunk in R Markdown. I am using the following code:

```{r, results = 'hide'}
densityplot(imputed_data)`
```

For some reason, when I knit the R markdown document to PDF or HTML, the plot appears below the code chunk. Are there other knitr display options of which I'm unaware that will suppress this plot?

Upvotes: 0

Views: 209

Answers (1)

Sai SL
Sai SL

Reputation: 121

results = 'hide' hides printed output while fig.show = 'hide' hides plots and figures.

Upvotes: 4

Related Questions