glob {bracer} | R Documentation |
Brace and Wildcard expansion on file paths
Description
glob
is a wrapper around Sys.glob
that uses
expand_braces
to support both brace and wildcard
expansion on file paths.
Usage
glob(paths, ..., engine = getOption("bracer.engine", NULL))
Arguments
paths |
character vector of patterns for relative or absolute filepaths. |
... |
Passed to |
engine |
If |
Examples
dir <- system.file("R", package="bracer")
path <- file.path(dir, "*.{R,r,S,s}")
glob(path, engine = "r")
[Package bracer version 1.2.2 Index]