Skip to content

Commit

Permalink
add temporary fix for tidyverse/vroom#519
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Oct 19, 2023
1 parent 459bb80 commit 83aa8c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/makeGRangesListFromExonFiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ makeGRangesListFromExonFiles <- function(filepaths, sampleNames = NULL,
stop("'sampleNames' length is inconsistent with 'fileNames'")

btData <- lapply(filepaths, function(file) {
if (requireNamespace("readr", quietly = TRUE))
if (requireNamespace("readr", quietly = TRUE)) {
readr::local_edition(1)
readr::read_delim(file, delim = "\t", n_max = nrows)
else
} else
read.delim(file, sep = "\t",
nrows = if (is.infinite(nrows)) -1 else nrows)
})
Expand Down

0 comments on commit 83aa8c1

Please sign in to comment.