detect_delim: Automatically detect line delimiters in a text file
Description
This helper function was written expressly for set_physical
to
be able to automate its recordDelimiter
argument.
Usage
detect_delim(path, nchar = 1000)
Arguments
path
(character) File to search for a delimiter
nchar
(numeric) Maximum number of characters to read from disk when
searching
Value
(character) If found, the delimiter, it not, \r\n