dir2.Rd
dir2
dir2(path = ".", pattern = NULL, full.names = TRUE, ...)
a character vector of full path names; the default
corresponds to the working directory, getwd()
. Tilde
expansion (see path.expand
) is performed. Missing
values will be ignored. Elements with a marked encoding will
be converted to the native encoding (and if that fails, considered
non-existent).
an optional regular expression. Only file names which match the regular expression will be returned.
a logical value. If TRUE
, the directory
path is prepended to the file names to give a relative file path.
If FALSE
, the file names (rather than paths) are returned.
other parameters to base::dir()