Skip to content

Commit

Permalink
Warn when warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolski committed May 27, 2024
1 parent 3233b4e commit 62e86c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidyMS_R6_Modelling.R
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ linfct_matrix_contrasts <- function(linfct , contrasts, p.message = FALSE){
tryCatch({
data <- dplyr::mutate(data, !!names(contrasts)[i] := !!rlang::parse_expr(contrasts[i]))
}, error = function(e) {
warning("Error:", e$message, "\n")
warning("Warn 'linfct_matrix_contrasts':", e$message, "\n")
# Handle the error, e.g., by skipping the current iteration, logging the error, etc.
})
}
Expand Down

0 comments on commit 62e86c3

Please sign in to comment.