R/warnings.R

Defines functions clear_warnings

Documented in clear_warnings

#' Avoid repeated warnings
#' 
#' Clear warnings for production code.
#' 
#' @seealso \code{\link{warnings}}
#' 
#' @export
clear_warnings <- function() {

    assign("last.warning", NULL, envir = baseenv())
    warnings()
}

Try the Nmisc package in your browser

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

Nmisc documentation built on April 28, 2021, 5:10 p.m.