r - How to capture execution error (stderr connection) into a string variable? -


with stdout connection can use [capture.output][1] function. error messages?

this of course require form of try block. faik try block doesn't provide way access string of actual error messages repressed.

can me, please?

use trycatch , conditionmessage

trycatch(stop("oops"), error=function(err) conditionmessage(err)) 

provide reproducible example more help.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -