Skip to content
Prev 62066 / 63433 Next

capture error messages from loading shared objects

Fellow R developers,

I can capture usual error message using the normal way:
<simpleError: object 'a' not found>

However I have troubles capturing the error message from this type of error:
Loading required namespace: foobar
Failed with error:  ?there is no package called ?foobar??
[1] FALSE

Is there any way to capture that specific error message?

Thank you in advance,
Adrian