Re: [R] evaluate whether function returns error

2012-05-25 Thread R. Michael Weylandt
I'm not sure I follow... It's an error -- what do you mean by "evaluate"? If you are looking to catch errors, you can do so with try or tryCatch and then check for inherits(x, "try-error") to see if there was an error. See the examples for details of how exactly to set this up -- I'm not at a co

[R] evaluate whether function returns error

2012-05-25 Thread mdvaan
Hi, The following returns an error message. How do I evaluate (TRUE or FALSE) the function? require(XML) readHTMLTable("http://www.sec.gov/Archives/edgar/data/2969/95012399010952/950123-99-010952.txt";) Thanks in advance! Math -- View this message in context: http://r.789695.n4.nabble