debugging - Error handling in R in RStudio -- don't invoke debugger? -
i'm trying create error messages similar can find in r package dplyr
don't invoke rstudio's debugger , stop , print informative message.
so example in rstudio if use:
library(dplyr) group_by(blah)
you informative error debugger not invoked "interruption" user minimal, realize issue , fix code. when use
myfunc<-function(val){ if(val>3) stop("this error", call.=false) } myfunc(4)
the debugger triggered , it's more unpleasant. how give nice error message out starting debugger? difference in how dplyr
creating error messages , mine? did @ github repo wasn't sure.
Comments
Post a Comment