Function to do wildcard expansion (also known as ‘globbing’) on file paths.
Sys.glob(paths, dirmark = FALSE)
| Parameter | Description |
|---|---|
paths |
character vector of patterns for relative or absolute filepaths. Missing values will be ignored. |
dirmark |
logical: should matches to directories from patterns that do not already end in / or \ have a slash appended? May not be supported on all platforms. |
# NOT RUN {
Sys.glob(file.path(R.home(), "library", "*", "R", "*.rdx"))
# }