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
Post a Comment