Wraps cat to simple print the contents of a file as output.
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
# NOT RUN { writeLines(text = c("a", "b", "c"), con = "foo") catf("foo") # }