Description Usage Arguments Details Value Note Author(s) See Also Examples
Return TRUE
if all passed files are found to be readable. If any file is
not readable, FALSE
is returned.
1 | rmincUtil.isReadable(filenames)
|
filenames |
A character vector consisting of one or more filenames. |
When passed a character vector containing one or more files, the read permissions
are checked for all files, and TRUE
is returned if all files are
found to be readable. This function works for all file types.
TRUE
is returned if all files are readable, else FALSE
.
This code was basically stolen from Jason Lerch and renamed. May dog have mercy on my sole.
Jim Nikelski nikelski@bic.mni.mcgill.ca
rmincUtil.isMinc
rmincUtil.isMinc1
rmincUtil.isMinc2
rmincUtil.asMinc2
1 2 3 4 5 6 7 8 | ## Not run:
# check for readability of a bunch of files
myFiles <- list.files(pattern=".mnc$") # get all minc files in current directory
if ( !rmincUtil.isReadable(myFiles) ) { # test for readability
error("One of the files was unreadable. Very sad, that.")
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.