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