Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress all output of knitr when knitting a file

Tags:

r

knitr

I am using knitr and would like to suppress any kind of verbose output when knitting a file. I know that I can remove the progress bar by

opts_knit$set(progress=FALSE)

Yet, I would like to suppress even the info about the processing file and the output file. Is this somehow possible?

like image 882
steffi Avatar asked Mar 27 '13 16:03

steffi


1 Answers

I just added a new argument named quiet in knit() the other day, which will suppress the messages about filenames. You can install the latest development version, or wait for knitr v1.2 which is about 10 days away.

library(knitr)
knit(..., quiet = TRUE)
like image 59
Yihui Xie Avatar answered Nov 08 '22 10:11

Yihui Xie