detect_delim: Automatically detect line delimiters in a text file

View source: R/set_physical.R

detect_delimR Documentation

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


EML documentation built on April 29, 2022, 1:06 a.m.