Opens the given files(s)
open_file(x)file_open(x)
shell_exec(x)
list_files(
x = ".",
pattern = utils::glob2rx(glob),
glob = NULL,
ignore_case = FALSE,
all = FALSE,
negate = FALSE,
basename = FALSE
)
list_dirs(
x = ".",
pattern = NULL,
ignore_case = FALSE,
all = FALSE,
basename = FALSE,
negate = FALSE
)
open_file()
, shell_exec()
: A logical vector where TRUE
successfully
opened, FALSE
did not and NA
did not try to open (file not found)
list_files()
, list_dirs()
: A vector of full paths
A character vector of paths
Pattern to search for files. glob
is absorbed into
pattern
, through utils::glob2rx()
.
logical. Should pattern-matching be case-insensitive?
a logical value. If FALSE, only the names of visible files are returned (following Unix-style visibility, that is files whose name does not start with a dot). If TRUE, all file names will be returned.
Logical, if TRUE
will inversely select files that do not
match the provided pattern
If TRUE
only searches pattern on the basename, otherwise on
the entire path
open_file
is an alternative to shell.exec()
that can take take
multiple files. list_files
and list_dirs
are mostly wrappers for
fs::dir_ls()
with preferred defaults and pattern searching on the full file
path.
file_open
is simply an alias.