tidymodels and try-catch handler

Is it possible to use try-catch-handler with tidymodels-code?

error<-tryCatch({

                            #set.seed(123)

                            wflw_fit<-fit(wflw,df_train,control=control_workflow(model_ctrl))

                            error<-0

                        }, warning = function(w) {

                            print(w)

                            return(0)

                        }, error = function(e) {

                            print(e)

                            return(1)

                        })

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.