IPDFileCheck (version 0.5.0)

testFileExistenceReadability: Function to throw error on invalid directory or file or if the file is not readable

Description

Function to throw error on invalid directory or file or if the file is not readable

Usage

testFileExistenceReadability(filename)

Arguments

filename

name of a file or dir

Value

0, if success -1, if failure

Examples

Run this code
# NOT RUN {
testFileExistenceReadability(system.file("extdata", "blank.txt", package = "IPDFileCheck"))
# }

Run the code above in your browser using DataLab