-
-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hide bash chunk execution with terminal rmarkdown::render run #1782
Comments
Hi, For such questions or issue, please next time, provide a reproducible example to work on. It is asked in the issue template you deleted. This is more a question here than an issue I guess. If you just want to suppress stdout and stderr in your linux terminal, you can use some linux tricks Small reprex: ---
title: "test"
output: md_document
---
```{bash message=FALSE, include=FALSE}
echo "chunk1"
``` put this in a Rscript -e "rmarkdown::render('test.Rmd', quiet = TRUE)" You'll have some outputs because non R engines print some messages to R output, currently by design I guess (from the source code in Rscript -e "rmarkdown::render('test.Rmd', quiet = TRUE)">/dev/null 2>&1 This will print nothing in terminal. Does it work for you ? |
Thanks a lot for the detailed answer and sorry for not providing a working example. You confirmed that the code cannot be made really quiet from inside which was my underlying question. I will suppress verbosity at bash level as you suggest. Thanks again for your time |
Will see what other think about this |
I agree, i only had this verbosity issue with bash chunks (with all verbosity options to false). With r chunks i can control without problem. I can live with this though, I was seeking perfection. ;-) |
The chunk option |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I have this small bash chunk which runs OK but outputs to the terminal when I run my Rmd from command line
R --slave -e "infile='extracted.fq.gz'; rmarkdown::render('Plot_FastqStats.Rmd', 'pdf_document', quiet=TRUE)"
How can I make it silent and just doing it job without echo'ing?
I have already set a bunch of things in the Rmd but still get the output below
my chunk of bash code
R --slave -e "infile='extracted.fq.gz'; rmarkdown::render('Plot_FastqStats.Rmd', 'pdf_document', quiet=TRUE)"
The text was updated successfully, but these errors were encountered: