telm8 <chienlinterry.huang <at> postgrad.manchester.ac.uk> writes:
>
>
> Thank worked! Thank you so much!!!
in general it is safer (I think) to test
inherits(try(log("a")),"try-error")
which takes care of the case when class(try(log("a"))) has
length > 1