# \donttest{
result <- tryCatch(
greplDir("error", fIgnoreRegex = "\\.log$"),
warning = function(w) c(exFname = TRUE),
error = function(e) c(exFname = TRUE)
)
# its even more useful to use `base::which` on the result to
# get matches and mismatches - this returns it with names
# by default
which(result)
which(!result)
# }
Run the code above in your browser using DataLab