Berfungsi untuk melakukan ekspansi wildcard (juga dikenal sebagai 'globbing') pada jalur file.
Sys.glob(paths, dirmark = FALSE)
| Parameter | Deskripsi |
|---|---|
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"))
# }