catf: Print the contents of a file

Description Usage Arguments Value References Examples

View source: R/utils.R

Description

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

Usage

1
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

1
2
3
4
5
## Not run: 
writeLines(text = c("a", "b", "c"), con = "foo")
catf("foo")

## End(Not run)

sboysel/boysel documentation built on May 29, 2019, 3:24 p.m.