On Sep 8, 2010, at 1:18 PM, telm8 wrote:
Hi,
I am having some strange problem with detecting "try-error". From
what I
have read so far the following statement:
try( log("a") ) == "try-error"
should yield TRUE, however, it yields FALSE. I can not figure out
why. Can
someone help?
> class(try( log("a"), silent=TRUE )) == "try-error"
[1] TRUE
Many thanks
--
View this message in context:
http://r.789695.n4.nabble.com/try-error-can-not-be-test-Why-tp2531675p2531675.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
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.
David Winsemius, MD
West Hartford, CT
______________________________________________
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.