Skip to content
Prev 4054 / 12125 Next

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

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 know if there are any downsides for the CRAN
workflow. I'll look into it.

Best,

luke
On Fri, 7 Jun 2019, William Dunlap wrote: