R/utils.R

Defines functions suppress_msg

suppress_msg <- function(expr, pattern = c("reserved SQL", "not overwriting")){
withCallingHandlers(expr,
                    message = function(e){
                      if(any(vapply(pattern, grepl, logical(1), e$message)))
                        invokeRestart("muffleMessage")
                    })
}

Try the taxadb package in your browser

Any scripts or data that you put into this service are public.

taxadb documentation built on March 31, 2023, 10:20 p.m.