Learn R Programming

assertive (version 0.2-6)

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_executable_file(x)

is_ex_file(x)

is_readable_file(x)

is_writable_file(x)

Arguments

x
Input to check.

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.

Examples

Run this code
assert_all_are_readable_files(dir())

Run the code above in your browser using DataLab