powered by
Filter paths
path_filter(path, glob = NULL, regexp = NULL, invert = FALSE, ...)
A character vector of one or more paths.
A wildcard aka globbing pattern (e.g. *.csv) passed on to grep() to filter paths.
*.csv
grep()
A regular expression (e.g. [.]csv$) passed on to grep() to filter paths.
[.]csv$
If TRUE return files which do not match
TRUE
Additional arguments passed to grep.
# NOT RUN { path_filter(c("foo", "boo", "bar"), glob = "*oo") path_filter(c("foo", "boo", "bar"), glob = "*oo", invert = TRUE) path_filter(c("foo", "boo", "bar"), regexp = "b.r") # }
Run the code above in your browser using DataLab