Check path, file name and extension
check_read.Rd
check_read
verifies that path name exists and that file name, together with extension,
has been correctly specified.
Examples
# Create a silly example text file.
sink("example.100")
i <- 1:10
outer(i, i)
sink()
# Check it exists and it has a valid CENTURY file extension.
check_read(getwd(), "example.100")
#> Error in check_read(getwd(), "example.100"): could not find function "check_read"
# Remove the silly example text file.
invisible(file.remove("example.100"))