R/Rcpp_exceptions.R

Defines functions .rcpp_collect_warnings .rcpp_warning_recorder .rcpp_error_recorder

.rcpp_error_recorder <- function(e){  
    invisible( .Call( "rcpp_error_recorder", e ) )
}

.warningsEnv <- new.env()
.warningsEnv$warnings <- character()

.rcpp_warning_recorder <- function(w){
    .warningsEnv$warnings <- append(.warningsEnv$warnings, w$message)
    invokeRestart("muffleWarning")
}

.rcpp_collect_warnings <- function() {
    warnings <- .warningsEnv$warnings
    .warningsEnv$warnings <- character()
    warnings
}

Try the mpMap2 package in your browser

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

mpMap2 documentation built on Sept. 13, 2020, 5:17 p.m.