Specify which files to include
file_spec(
path,
pattern = NULL,
format = c("binary", "text"),
recursive = TRUE,
ignore_case = TRUE,
all_files = FALSE
)Path relative to the package root), for example, "inst/".
Regular expression for matching the file names.
File format type, one of "binary" or "text".
List files in the sub-directories?
Should pattern-matching be case-insensitive?
List all files including the invisible ones?
A file specification object.
Most of the parameters are passed through list.files().
The contents of this section are shown in PDF user manual only.
file_spec(
"R/",
pattern = "\\.R$", format = "text",
recursive = FALSE, ignore_case = TRUE, all_files = FALSE
)
#> -- File specification ----------------------------------------------------
#> - Relative path: "R/"
#> - Pattern: "\\.R$"
#> - Format: "text"
#> - Recursive: FALSE
#> - Ignore case: TRUE
#> - All files: FALSE