|
6 | 6 | \itemize{
|
7 | 7 | \item Changes in Rcpp API:
|
8 | 8 | \itemize{
|
9 |
| - \item Defining an error handler for tinyformat prevents \code{assert()} |
10 |
| - from spilling. |
11 |
| - \item Add Rcpp::warning function as wrapper for Rf_warning. |
12 |
| - \item Improvements to XPtr including new \code{checked_get} and |
13 |
| - \code{release} functions as well as improved behavior (throw an |
14 |
| - exception rather than crash) when a NULL external pointer is |
15 |
| - dereferenced. |
16 |
| - \item Evaluate R code within an \code{R_toplevelExec} block to prevent |
| 9 | + \item An error handler for tinyformat was defined to prevent the \code{assert()} |
| 10 | + macro from spilling. |
| 11 | + \item The \code{Rcpp::warning} function was added as a wrapper for \code{Rf_warning}. |
| 12 | + \item The \code{XPtr} class was extended with new \code{checked_get} |
| 13 | + and \code{release} functions as well as improved behavior (throw an |
| 14 | + exception rather than crash) when a NULL external pointer is dereferenced. |
| 15 | + \item R code is evaluated within an \code{R_toplevelExec} block to prevent |
17 | 16 | user interrupts from bypassing C++ destructors on the stack.
|
18 | 17 | }
|
19 | 18 | \item Changes in Rcpp Attributes:
|
20 | 19 | \itemize{
|
21 |
| - \item Include pkg_types.h file in RcppExports.cpp if it's present in |
22 |
| - inst/include or src. |
23 |
| - \item Simplify generated attributes code for \code{RNGScope} (use |
24 |
| - \code{RObject} and it's destructor rather than \code{SEXP} |
25 |
| - protect/unprotect). |
26 |
| - \item Add rng parameter to Rcpp::export to prevent inclusion of |
27 |
| - RNGScope in generated code. |
28 |
| - \item Correctly detect Rtools 3.2 |
| 20 | + \item The \code{pkg_types.h} file is now included in \code{RcppExports.cpp} |
| 21 | + if it is present in either the \code{inst/include} or \code{src}. |
| 22 | + \item The generated attributes code was simplified with respect to |
| 23 | + \code{RNGScope} and now uses \code{RObject} and its destructor rather than \code{SEXP} |
| 24 | + protect/unprotect. |
| 25 | + \item Support addition of the \code{rng} parameter in \code{Rcpp::export} |
| 26 | + to suppress the otherwise automatic inclusion of \code{RNGScope} in generated code. |
| 27 | + \item Version 3.2 of the Rtools is now correctly detected as well. |
29 | 28 | }
|
30 | 29 | }
|
31 | 30 | }
|
|
0 commit comments