Description Usage Arguments Value References Examples
Wraps cat
to simple print the contents of a file as output.
1 | catf(f)
|
f |
a filename passed to |
The contents of f
are displayed as output.
Attributed to Yihui Xie via StackOverflow: http://stackoverflow.com/a/29264573/3277821
1 2 3 4 5 | ## Not run:
writeLines(text = c("a", "b", "c"), con = "foo")
catf("foo")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.