I have a loop over readLines(URL[i]) which works fine until it hits a bad URL 
(e.g., a
URL that returns a 404 Error).

How can I handle this with a test for this error condition.

I read the tryCatch( … ) description but can't figure out how to apply it here. 
Perhaps
there is something else that would work better.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to