On 24-Feb-10 20:03, Henrique Dallazuanna wrote: > You can use tryCatch also: > > cat(tryCatch(sprintf('found %s in col %d\n', s, c), error = > function(x)cat('Not Found\n'))) Ah .. one more way .. thanks, I've saved it away in my set of R tricks! Best, Esmail