Build expression to read file(s)
read_expr.RdCreates an R expression that reads one or more files using standard R packages (readr, readxl, arrow, rio). This is a pure function with no Shiny dependencies, making it easily testable.
Arguments
- paths
Character vector of file paths to read
- file_type
Character. Type of file: "csv", "excel", "arrow", or "other"
- combine
Character. For multiple files: "first" (use first only), "rbind" (row bind), "cbind" (column bind), or "auto" (try rbind, fallback to first)
- ...
Additional parameters passed to the reader function. Common parameters:
For CSV: sep, col_names, skip, n_max, quote, encoding
For Excel: sheet, range, col_names, skip, n_max