tryCatch without handler in QC.R

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

tryCatch without handler in QC.R

R devel mailing list
The following is among those added by r77792 to src/library/tools/R/QC.R in R devel.
                bad <- tryCatch(check_url_db(udb))

The 'tryCatch' has no handler. It does nothing. Error would still stop execution.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: tryCatch without handler in QC.R

R devel mailing list
 Sorry, it is already fixed. Currently, it is as follows.
 bad <- tryCatch(check_url_db(udb), error = identity)


On Tuesday, 10 March 2020, 11:53:16 pm GMT+7, <[hidden email]> wrote:


The following is among those added by r77792 to src/library/tools/R/QC.R in R devel.
                bad <- tryCatch(check_url_db(udb))

The 'tryCatch' has no handler. It does nothing. Error would still stop execution.  
        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel