This function reads a text file and returns a character vector containing the lines in the text file.
Arguments
- file
Name of the input file.
- file_encoding
Encoding of the input file.
- line_glue
A character vector or
NA. IfNA, the output is a character vector in which each input line is a separate item, as inreadr::read_lines(). Otherwise, the output is a character vector of length 1 in which all input lines are concatenated, using the value ofline_glue[1]as line separator and as end-of-last-line marker.- ...
Additional arguments (not implemented).
See also
Other reading functions:
read_assoc(),
read_conc(),
read_fnames(),
read_freqlist(),
read_tokens(),
read_types()
