read_paths_: Read Paths From File

Description Usage Arguments Value

View source: R/read_paths.R

Description

Read paths from a file that contains one path per line. Convert backslashes to slashes and sort the paths (by default)

Usage

1
2
read_paths_(file, fileEncoding = NULL, encoding = NULL, ...,
  do_sort = TRUE, expected_encodings = c("windows-1252", "ISO-8859-1"))

Arguments

file

full path to the text file containing paths

fileEncoding

The name of the encoding to be assumed. Passed as encoding to file, see there.

encoding

passed to readLines.

...

arguments passed to fakin.path.app:::read_lines, such as n

do_sort

if TRUE (default), the vector of paths is sorted alphanumerically.

expected_encodings

vector of names of file encodings that are expected to occur. Expected encodings will be preferred.

Value

vector of character


KWB-R/fakin.path.app documentation built on Nov. 25, 2020, 10:20 p.m.