Skip to content

Commit

Permalink
fix: ignore_args for R native file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
tin900 committed Dec 8, 2023
1 parent 397b073 commit 5354bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/helperfunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ handle_file_upload <- function(input, output, session) {

# Map file extensions to reading functions
read_funcs <- list(
RData = readRDS,
RData = ignore_args(readRDS),
asc = ignore_args(utils::read.table),
csv = function(path, sep, header) utils::read.csv(path, sep = sep, header = header),
feather = ignore_args(feather::read_feather),
fst = ignore_args(fst::read_fst),
parquet = ignore_args(arrow::read_parquet),
rda = readRDS,
rds = readRDS,
rda = ignore_args(readRDS),
rds = ignore_args(readRDS),
sav = ignore_args(haven::read_sav),
tsv = function(path, sep, header) utils::read.delim(path, sep = sep, header = header),
txt = function(path, sep, header) utils::read.delim(path, sep = sep, header = header),
Expand Down

0 comments on commit 5354bb7

Please sign in to comment.