list_files | R Documentation |
When x
is a character
vector or a
local_stash
, then list_files
behaves as an alias for
list.files
where x
is passed to the path
argument of list.files
and the remaining matching
arguments are passed as is with the default values of list_files
where
applicable. (If you do not define an argument, the default value for the
argument as defined in list_files
will be used and not the default as
defined in list.files
).
list_files(x = ".", pattern = NULL, all.files = FALSE,
full.names = FALSE, recursive = FALSE, ignore.case = FALSE,
include.dirs = !recursive, no.. = FALSE, match.file = TRUE,
as.stash = TRUE, simplify = TRUE)
x |
A |
pattern |
Optional |
all.files |
Logical. If |
full.names |
Logical. If |
recursive |
Logical. Should the listing recurse into directories? |
ignore.case |
Logical. Should pattern-matching be case-insensitive? |
include.dirs |
Logical. If |
no.. |
Logical. Should both "." and ".." be excluded from non-recursive
listings? Not applicable when |
match.file |
Logical. If |
as.stash |
Logical. If |
If as.stash = TRUE
, a list of stash
objects
will be returned, matching the stash type of x
. If x
is a
character
vector then a list of local_stash
objects
are returned. If as.stash = FALSE
, a character
vector is
returned. If there are no matching files, the list or character vector
will be of length == 0
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.