Skip to content

Commit

Permalink
Trim whitespace from input file names
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinCCYap committed Nov 25, 2021
1 parent d1a5c48 commit de455c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/mergingandstackingutilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' @importFrom flipAPI IsDisplayrCloudDriveAvailable
readDataSets <- function(data.set.names, min.data.sets = 1)
{
data.set.names <- vapply(data.set.names, trimws, character(1),
USE.NAMES = FALSE)

if (length(data.set.names) < min.data.sets)
stop("At least ", min.data.sets, " data set(s) are required.")

Expand Down

0 comments on commit de455c7

Please sign in to comment.