Utility for shell-style file tests.
file_test(op, x, y)
a character string specifying the test to be performed.
Unary tests (only
character vectors giving file paths.
‘Existence’ here means being on the file system and accessible
stat system call (or a 64-bit extension) – on a
Unix-alike this requires execute permission on all of the directories in
the path that leads to the file, but no permissions on the file
For the meaning of
"-x" on Windows see
file.exists which only tests for existence
test -e on some systems) but not for not being a directory.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.