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 Sys.glob

engine

If 'r' use a pure R parser. If 'v8' use the 'braces' Javascript parser via the suggested V8 package. If NULL use 'v8' if 'V8' package detected else use 'r'; in either case send a message() about the choice unless getOption(bracer.engine.inform') is FALSE.

Examples

  dir <- system.file("R", package="bracer")
  path <- file.path(dir, "*.{R,r,S,s}")
  glob(path, engine = "r")

[Package bracer version 1.2.1 Index]