Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress all messages in knitr/ Rmarkdown?

I have used dplyr for some of the analyses and for a particular code it takes about 30 seconds to complete the operation. In the resulting HTML I get a very long output of something like this (reproducing last few lines):

|================================================ |100% ~0 s remaining     
|================================================ |100% ~0 s remaining     
Completed after 35 s

I don't want this to show in the output. How can I suppress this? Is there anythink in the global chunk options of knitr that could stop these messages

like image 486
umair durrani Avatar asked Oct 20 '14 00:10

umair durrani


1 Answers

I think you want the chunk option results='hide' for that particular code chunk only.

```{r results='hide'}
# do your dplyr computation here
```
like image 184
Yihui Xie Avatar answered Sep 20 '22 02:09

Yihui Xie