hush | R Documentation |
This uses sink()
to silence unwanted output from R code. So far it seems to
be more successful than invisible()
. I basically followed the Stack
Overflow discussion in the references to create this one.
hush(code, is_unix = FALSE)
code |
R code that you want to silence. |
is_unix |
Logical; Default is FALSE, but if you are working in a UNIX environment then you will want to set it to TRUE. |
The output of your code, but without printing to console.
https://stackoverflow.com/questions/2723034/suppress-one-commands-output-in-r
## Not run:
x <- dput(names(mtcars))
x <- hush(dput(names(mtcars)))
x
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.