Re: [R-pkg-devel] [External] Re: Farming out methods to other packages

2019-08-10 Thread Tierney, Luke
You could have your default method handle the cases you can handle; if you want that to dispatch you can use something like recover_data.default <- function(object, ...) default_recover_data(object, ...) default_recover_data <- function(object, ...) UseMethod("default_recover_data")

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