Skip to content

Commit

Permalink
adding csv capability
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpetyuk committed Nov 24, 2024
1 parent 27d7634 commit 68ace16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/PNNL_DMS_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,13 @@ get_results_for_single_job.dt <- function(pathToFile, fileNamePttrn, expected_mu

short_dataset_names <- unlist(strsplit(basename(pathToFile),
split = fileNamePttrn))

read_fun <- read_tsv
if(grepl(".csv$", pathToFile))
read_fun <- read_csv

out <- llply(pathToFile,
read_tsv,
read_fun,
col_types = readr::cols(),
guess_max = Inf,
progress = FALSE) %>%
Expand Down

0 comments on commit 68ace16

Please sign in to comment.