read_txt: Read a text file

Description Usage Arguments Value

Description

A simple wrapper function around readLines, which combines each line into a single string, via paste0(x, collapse = "\n").

Usage

1

Arguments

file

A filename to read-in

print

Should the contents of the file be printed to the console with cat? (If so, results will be returned invisibly.)

Value

The contents of the file, as a character vector of length one.


brendan-r/brocks documentation built on May 13, 2019, 5:08 a.m.