convert_to_lines: Converts text into separate lines

Description Usage Arguments Value Examples

View source: R/convert_to_lines.R

Description

Converts text into separate lines

Usage

1

Arguments

x

(character) Either a path to a file, a connection, or literal data (either a single string or a raw vector).
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).

Value

A vector of strings.

Examples

1
2
3
4
5
convert_to_lines("a\nb")

# expect error, as "a" is interpreted as a file name:

# convert_to_lines("a")

GegznaV/conspect.helper documentation built on Sept. 18, 2020, 4:02 p.m.