steffi
steffi

Reputation: 513

Suppress all output of knitr when knitting a file

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?

Upvotes: 9

Views: 1703

Answers (1)

Yihui Xie
Yihui Xie

Reputation: 30114

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)

Upvotes: 9

Related Questions