Learn R Programming

assertive (version 0.1-7)

assert_all_are_executable_files: Is the file accessible?

Description

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

Usage

assert_all_are_executable_files(x)

  assert_any_are_executable_files(x)

  assert_all_are_readable_files(x)

  assert_any_are_readable_files(x)

  assert_all_are_writable_files(x)

  assert_any_are_writable_files(x)

  is_ex_file(x)

  is_readable_file(x)

  is_writable_file(x)

Arguments

x
Input to check.

Value

  • is_ex_file wraps file.access, showing the names of the inputs in the answer. assert_is_ex_file returns nothing but throws an error if is_ex_file returns FALSE.

See Also

file.access.

Examples

Run this code
assert_all_are_readable_files(dir())

Run the code above in your browser using DataLab