search for: cmessage

Displaying 4 results from an estimated 4 matches for "cmessage".

Did you mean: message
2019 Sep 15
2
REprintf could be caught by tryCatch(message)
...completeness. The inconsistency I would like to report is about REprintf. It cannot be caught by tryCatch(message). Warnings are errors are being caught as expected. Is there any chance to "fix"/"improve" REprintf so tryCatch(message) can catch it? So in the example below catch(Cmessage()) would behave consistently to R's catch(message("a"))? Regards, Jan Gorecki catch = function(expr) { tryCatch(expr, message=function(m) cat("caught message\n"), warning=function(w) cat("caught warning\n"), error=function(e) cat("caught error\...
2019 Sep 15
2
[External] REprintf could be caught by tryCatch(message)
...errors are being caught > > as expected. > > > > Is there any chance to "fix"/"improve" REprintf so tryCatch(message) > > can catch it? > > No: this is behaving as intended. > > Best, > > luke > > > So in the example below catch(Cmessage()) would behave consistently to > > R's catch(message("a"))? > > > > Regards, > > Jan Gorecki > > > > catch = function(expr) { > > tryCatch(expr, > > message=function(m) cat("caught message\n"), > > warning=functio...
2019 Sep 15
0
[External] REprintf could be caught by tryCatch(message)
...annot > be caught by tryCatch(message). Warnings are errors are being caught > as expected. > > Is there any chance to "fix"/"improve" REprintf so tryCatch(message) > can catch it? No: this is behaving as intended. Best, luke > So in the example below catch(Cmessage()) would behave consistently to > R's catch(message("a"))? > > Regards, > Jan Gorecki > > catch = function(expr) { > tryCatch(expr, > message=function(m) cat("caught message\n"), > warning=function(w) cat("caught warning\n"), >...
2019 Sep 16
0
[External] REprintf could be caught by tryCatch(message)
...ected. >>> >>> Is there any chance to "fix"/"improve" REprintf so tryCatch(message) >>> can catch it? >> >> No: this is behaving as intended. >> >> Best, >> >> luke >> >>> So in the example below catch(Cmessage()) would behave consistently to >>> R's catch(message("a"))? >>> >>> Regards, >>> Jan Gorecki >>> >>> catch = function(expr) { >>> tryCatch(expr, >>> message=function(m) cat("caught message\n"), >...