Hello!

I need to flag my operation as an error if it produces an error.

For example, this expression produces an error:
test<-try(log("a"))
str(test)

However, how can I proceed using the information contained in test object?
I am looking for something like:
if test is an error {do this and this}
But I am not sure how to do it.

I tried:

class(test) %in% "try_error"

But it says: FALSE

Thank you very much!

-- 
Dimitri Liakhovitski

	[[alternative HTML version deleted]]

