% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers-data.R
\name{detect_separator}
\alias{detect_separator}
\title{Detect field separator from file extension}
\usage{
detect_separator(path)
}
\arguments{
\item{path}{A \code{character} value indicating the path to the file whose
separator should be detected.}
}
\value{
A \code{character} value indicating the field separator: \code{"\\t"} for TSV
files, otherwise \code{","}.
}
\description{
Determines the column separator to use when reading a delimited text file
based on its file extension. Files ending in \code{.tsv} (case-insensitive) are
assumed to be tab-delimited; all others default to comma-delimited.
}
\keyword{internal}
