Extract information from CSV headers.
extract_header_info(
header_lines,
label,
filename,
required = FALSE,
multiline = FALSE
)
Character vector holding raw header lines
Label to search for - character
Filename (for error reporting purposes)
Is this label required? (logical)
Can this label hold multi-line information? (logical)
Extracted label information, as a character vector
CSV files can have headers, commented lines of the form "# Title: xxxx",
"# Source: xxxx", etc. Extract this information if present. Note that empty headers
are not allowed. This function is called by parse_csv_header
.