Description Usage Arguments Value See Also Examples
Checks to see if the input files can be executed/read/written to.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | assert_all_are_executable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
assert_any_are_executable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
assert_all_are_readable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
assert_any_are_readable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
assert_all_are_writable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
assert_any_are_writable_files(x, warn_about_windows = TRUE,
severity = getOption("assertive.severity", "stop"))
is_executable_file(x, warn_about_windows = TRUE,
.xname = get_name_in_parent(x))
is_ex_file(x)
is_readable_file(x, warn_about_windows = TRUE,
.xname = get_name_in_parent(x))
is_writable_file(x, warn_about_windows = TRUE,
.xname = get_name_in_parent(x))
|
x |
Input to check. |
warn_about_windows |
Logical. If |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_executable_file
wraps file.access
, showing
the names of the inputs in the answer. assert_is_executable_file
returns nothing but throws an error if is_executable_file
returns
FALSE
.
1 2 3 4 | files <- dir()
is_readable_file(files)
is_writable_file(files, warn_about_windows = FALSE)
is_executable_file(files, warn_about_windows = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.