Wraps cat to simple print the contents of a file as output.

catf(f)

Arguments

f

a filename passed to readLines.

Value

The contents of f are displayed as output.

References

Attributed to Yihui Xie via StackOverflow: http://stackoverflow.com/a/29264573/3277821

Examples

# NOT RUN {
writeLines(text = c("a", "b", "c"), con = "foo")
catf("foo")
# }