
Flexible file reader for SAS, XPT, and CSV formats, with optional input recording
sweet_read.RdReads a dataset from a path, supporting .sas7bdat, .xpt, and .csv files.
The original file path is retained as an attribute "path" on the returned data.
The file modification time ("mtime") is also set as an attribute.
If record_input is TRUE, records the input file path via utilscognigen::record_input().
Arguments
- path
 Character. Path to the file to read.
- ...
 Additional arguments passed to
data.table::fread(for .CSVs).- record_input
 Logical. If
TRUE, records the input file path viautilscognigen::record_input(). Default isTRUE.