file_spec {pkglite} | R Documentation |
Create a file specification
Description
Specify which files to include
Usage
file_spec(
path,
pattern = NULL,
format = c("binary", "text"),
recursive = TRUE,
ignore_case = TRUE,
all_files = FALSE
)
Arguments
path |
Path relative to the package root), for example, |
pattern |
Regular expression for matching the file names. |
format |
File format type, one of |
recursive |
List files in the sub-directories? |
ignore_case |
Should pattern-matching be case-insensitive? |
all_files |
List all files including the invisible ones? |
Details
Most of the parameters are passed through list.files()
.
Value
A file specification object.
Specification
The contents of this section are shown in PDF user manual only.
Examples
file_spec(
"R/",
pattern = "\\.R$", format = "text",
recursive = FALSE, ignore_case = TRUE, all_files = FALSE
)
[Package pkglite version 0.2.2 Index]