Re: [R-pkg-devel] [External] Re: try() in R CMD check --as-cran

2019-06-14 Thread Tomas Kalibera
The advantage of "abort" (R_Suicide) over the default (R error) is that it cannot be caught accidentally, so that one can detect more errors, and it may be easier to find where the error happened. To make the default behavior less surprising/more user friendly, and to allow intentional

Re: [R-pkg-devel] [External] Re: try() in R CMD check --as-cran

2019-06-07 Thread Tierney, Luke
A simplified version without a package: Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_"="abort,verbose") tryCatch(1:3 || 1, error = identity) Running this aborts the session since it calls R_Suicide without first signaling a condition to try any available handlers. Should be easy to change, but I don't