assert_all_are_executable_files

0th

Percentile

Is the file accessible?

Checks to see if the input files can be executed/read/written to.

Usage
assert_all_are_executable_files(x, severity = getOption("assertive.severity",
  "stop"))

assert_any_are_executable_files(x, severity = getOption("assertive.severity",
  "stop"))

assert_all_are_readable_files(x, severity = getOption("assertive.severity",
  "stop"))

assert_any_are_readable_files(x, severity = getOption("assertive.severity",
  "stop"))

assert_all_are_writable_files(x, severity = getOption("assertive.severity",
  "stop"))

assert_any_are_writable_files(x, severity = getOption("assertive.severity",
  "stop"))

is_executable_file(x, .xname = get_name_in_parent(x))

is_ex_file(x)

is_readable_file(x, .xname = get_name_in_parent(x))

is_writable_file(x, .xname = get_name_in_parent(x))
Arguments
x
Input to check.
severity
How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".
.xname
Not intended to be used directly.
Value

  • 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.

See Also

file.access.

Aliases
  • assert_all_are_executable_files
  • assert_all_are_readable_files
  • assert_all_are_writable_files
  • assert_any_are_executable_files
  • assert_any_are_readable_files
  • assert_any_are_writable_files
  • is_ex_file
  • is_executable_file
  • is_readable_file
  • is_writable_file
Examples
files <- dir()
is_readable_file(files)
is_writable_file(files)
is_executable_file(files)
Documentation reproduced from package assertive.files, version 0.0-1, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.