errors handling
Marco Venanzi wrote:
Hi, I have an index "i" that varies from 1 to n. For each value of this index I open a connection, e.g. conness<-url(...) conness<-readLines(conness) For certain values of "i" it occurs an error (Warning message: cannot open: HTTP status was `0 (null)' ) and the program flow ends. How can I ignore these errors, allowing the program to go on?
Please read the FAQs, in particular "How can I capture or ignore errors in a long simulation?"! Uwe Ligges
Thanks,
Marco
[[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html