File tree Expand file tree Collapse file tree 4 files changed +312
-230
lines changed
Expand file tree Collapse file tree 4 files changed +312
-230
lines changed Original file line number Diff line number Diff line change 1+ 2015-02-02 JJ Allaire <jj@rstudio.org>
2+
3+ * R/exceptions.R: Evaluate R code within an R_toplevelExec block
4+ * include/Rcpp/api/meat/Rcpp_eval.h: Evaluate R code within an
5+ R_toplevelExec block
6+
172015-01-25 Kevin Ushey <kevinushey@gmail.com>
28
39 * inst/include/Rcpp/utils/tinyformat.h: define an error handler for
Original file line number Diff line number Diff line change 1919 invisible ( .Call( rcpp_error_recorder , e ) )
2020}
2121
22+ .warningsEnv <- new.env()
23+ .warningsEnv $ warnings <- character ()
24+
25+ .rcpp_warning_recorder <- function (w ){
26+ .warningsEnv $ warnings <- append(.warningsEnv $ warnings , w $ message )
27+ invokeRestart(" muffleWarning" )
28+ }
29+
30+ .rcpp_collect_warnings <- function () {
31+ warnings <- .warningsEnv $ warnings
32+ .warningsEnv $ warnings <- character ()
33+ warnings
34+ }
35+
36+
You can’t perform that action at this time.
0 commit comments