read_lines(file, skip = 0, n_max = -1L, locale = default_locale(), na = character(), progress = interactive())
read_lines_raw(file, skip = 0, n_max = -1L, progress = interactive()) Files ending in .gz, .bz2, .xz, or .zip will
be automatically uncompressed. Files starting with http://,
https://, ftp://, or ftps:// will be automatically
downloaded. Remote gz files can also be automatically downloaded &
decompressed.
Literal data is most useful for examples and tests. It must contain at least one new line to be recognised as data (instead of a path).
n_max is -1, all lines in
file will be read.locale to create your own locale that controls things like
the default time zone, encoding, decimal mark, big mark, and day/month
names.character() to indicate no missing values.read_lines: A character vector with one element for each line.
read_lines_raw: A list containing a raw vector for each line.
read_lines(readr_example("mtcars.csv"))
read_lines("1\n\n2")
read_lines("\n")
read_lines_raw(readr_example("mtcars.csv"))
Run the code above in your browser using DataLab