Skip to content

Commit

Permalink
incorrect extension grab
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Jan 5, 2024
1 parent cc1c773 commit 3133956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_multi.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ read_any <- function(file, ...) {
os <- read_opus(file = file, ...)
} else if (grepl("(\\.asp$)|(\\.spa$)|(\\.spc$)|(\\.jdx$)",
ignore.case = T, file)) {
ex <- strsplit(basename(file), split="\\.")[[1]][-1]
ex <- gsub(".*\\.", "", file)
os <- do.call(paste0("read_", tolower(ex)), list(file = file, ...))
} else if (grepl("(\\.zip$)", ignore.case = T, file)) {
os <- read_zip(file = file, ...)
Expand Down

0 comments on commit 3133956

Please sign in to comment.