|
14 | 14 | \itemize{ |
15 | 15 | R 3.3.0 Windows with Rtools 3.3 is now supported (Qin Wenfeng in PR \ghpr{451}). |
16 | 16 | } |
| 17 | + \item Changes in Rcpp Modules: |
| 18 | + \itemize{ |
| 19 | + \item New function \code{copy} to invoke the copy constructor of a |
| 20 | + C++ class that has been exposed by modules. |
| 21 | + \item New function \code{destruct} to explicitely call the |
| 22 | + destructor of the underlying C++ object without waiting for the |
| 23 | + garbage collector. |
| 24 | + \item New function \code{is\_destructed} to check if an object has been |
| 25 | + destructed (presumably by \code{destruct} ) |
| 26 | + } |
17 | 27 | } |
18 | 28 | } |
19 | | - |
| 29 | + |
20 | 30 | \section{Changes in Rcpp version 0.12.4 (2016-03-22)}{ |
21 | 31 | \itemize{ |
22 | 32 | \item Changes in Rcpp API: |
|
65 | 75 | \ghpr{406} by Qiang fixing \ghit{365}). |
66 | 76 | \item A missing \code{std::hash} function interface for |
67 | 77 | \code{Rcpp::String} has been addded (PR \ghpr{408} by Qiang fixing |
68 | | - \ghit{84}). |
| 78 | + \ghit{84}). |
69 | 79 | } |
70 | 80 | \item Changes in Rcpp Attributes: |
71 | 81 | \itemize{ |
72 | 82 | \item Avoid invalid function names when generating C++ interfaces (PR |
73 | 83 | \ghpr{403} by JJ fixing \ghit{402}). |
74 | | - \item Insert additional space around \code{&} in function interface (PR |
| 84 | + \item Insert additional space around \code{&} in function interface (PR |
75 | 85 | \ghpr{400} by Kazuki Fukui fixing \ghit{278}). |
76 | 86 | } |
77 | 87 | \item Changes in Rcpp Modules: |
|
95 | 105 | by Florian) |
96 | 106 | \item Before creating a single String object from a \code{SEXP}, ensure |
97 | 107 | that it is from a vector of length one (PR \ghpr{376} by Dirk, fixing |
98 | | - \ghit{375}). |
| 108 | + \ghit{375}). |
99 | 109 | \item No longer use \code{STRING_ELT} as a left-hand side, thanks to a |
100 | 110 | heads-up by Luke Tierney (PR \ghpr{378} by Dirk, fixing \ghit{377}). |
101 | 111 | \item Rcpp Module objects are now checked more carefully (PR \ghpr{381} |
|
107 | 117 | \item \code{operator<<()} now always shows decimal points (PR \ghpr{396} |
108 | 118 | by Dan) |
109 | 119 | \item Matrix classes now have a \code{transpose()} function (PR \ghpr{397} |
110 | | - by Dirk fixing \ghit{383}) |
| 120 | + by Dirk fixing \ghit{383}) |
111 | 121 | \item \code{operator<<()} for complex types was added (PRs \ghpr{398} by |
112 | 122 | Qiang and \ghpr{399} by Dirk, fixing \ghit{187}) |
113 | 123 | } |
|
125 | 135 | \item Changes in Rcpp Documentation: |
126 | 136 | \itemize{ |
127 | 137 | \item The \code{NEWS} file now links to GitHub issue tickets and pull |
128 | | - requests. |
| 138 | + requests. |
129 | 139 | \item The \code{Rcpp.bib} file with bibliographic references was updated. |
130 | 140 | } |
131 | 141 | } |
132 | 142 | } |
133 | | - |
| 143 | + |
134 | 144 | \section{Changes in Rcpp version 0.12.1 (2015-09-10)}{ |
135 | 145 | \itemize{ |
136 | 146 | \item Changes in Rcpp API: |
137 | 147 | \itemize{ |
138 | | - \item Correct use of WIN32 instead of _WIN32 to please Windows 10 |
| 148 | + \item Correct use of WIN32 instead of _WIN32 to please Windows 10 |
139 | 149 | \item Add an assignment operator to \code{DimNameProxy} (PR \ghpr{339} by Florian) |
140 | 150 | \item Add vector and matrix accessors \code{.at()} with bounds checking |
141 | | - (PR \ghpr{342} by Florian) |
| 151 | + (PR \ghpr{342} by Florian) |
142 | 152 | \item Correct character vector conversion from single char (PR \ghpr{344} by |
143 | 153 | Florian fixing issue \ghit{343}) |
144 | 154 | \item Correct on use of \code{R_xlen_t} back to \code{size_t} (PR \ghpr{348} by |
|
186 | 196 | R expressions; this should resolve errors where calling handlers (e.g. |
187 | 197 | through \code{suppressMessages()}) were not properly respected. |
188 | 198 | \item All internal length variables have been changed from \code{R_len_t} |
189 | | - to \code{R_xlen_t} to support vectors longer than 2^31-1 elements (via |
| 199 | + to \code{R_xlen_t} to support vectors longer than 2^31-1 elements (via |
190 | 200 | PR \ghpr{303} by Qiang Kou). |
191 | 201 | \item The sugar function \code{sapply} now supports lambda functions |
192 | 202 | (addressing \ghit{213} thanks to Matt Dziubinski) |
193 | 203 | \item The \code{var} sugar function now uses a more robust two-pass |
194 | 204 | method, supports complex numbers, with new unit tests added (via PR |
195 | | - \ghpr{320} by Matt Dziubinski) |
| 205 | + \ghpr{320} by Matt Dziubinski) |
196 | 206 | \item \code{String} constructors now allow encodings (via PR \ghpr{310} |
197 | 207 | by Qiang Kou) |
198 | 208 | \item \code{String} objects are preserving the underlying \code{SEXP} |
|
201 | 211 | \item DataFrame constructors are now a little more careful (via PR |
202 | 212 | \ghpr{301} by Romain Francois) |
203 | 213 | \item For R 3.2.0 or newer, \code{Rf_installChar()} is used instead of |
204 | | - \code{Rf_install(CHAR())} (via PR \ghpr{332}). |
| 214 | + \code{Rf_install(CHAR())} (via PR \ghpr{332}). |
205 | 215 | } |
206 | 216 | \item Changes in Rcpp Attributes: |
207 | 217 | \itemize{ |
|
233 | 243 | matrices (via a pull request by Dmitrii Meleshko). |
234 | 244 | \item A new \code{empty()} string constructor was added (via another pull |
235 | 245 | request). |
236 | | - \item Better support for Vectors with a storage policy different from the |
| 246 | + \item Better support for Vectors with a storage policy different from the |
237 | 247 | default, i.e. \code{NoProtectStorage}, was added. |
238 | 248 | } |
239 | 249 | \item Changes in Rcpp Attributes: |
|
258 | 268 | \item The \code{Rcpp::Environment} constructor can now use a supplied |
259 | 269 | parent environment. |
260 | 270 | \item The \code{Rcpp::Function} constructor can now use a supplied |
261 | | - environment or namespace. |
| 271 | + environment or namespace. |
262 | 272 | \item The \code{attributes_hidden} macro from R is used to shield internal |
263 | 273 | functions; the \code{R_ext/Visibility.h} header is now included as well. |
264 | | - \item A \code{Rcpp::print} function was added as a wrapper around \code{Rf_PrintValue}. |
| 274 | + \item A \code{Rcpp::print} function was added as a wrapper around \code{Rf_PrintValue}. |
265 | 275 | } |
266 | 276 | \item Changes in Rcpp Attributes: |
267 | 277 | \itemize{ |
268 | 278 | \item The \code{pkg_types.h} file is now included in \code{RcppExports.cpp} |
269 | | - if it is present in either the \code{inst/include} or \code{src}. |
270 | | - \item \code{sourceCpp} was modified to allow includes of local files |
| 279 | + if it is present in either the \code{inst/include} or \code{src}. |
| 280 | + \item \code{sourceCpp} was modified to allow includes of local files |
271 | 281 | (e.g. \code{#include "foo.hpp"}). Implementation files (*.cc; *.cpp) corresponding |
272 | 282 | to local includes are also automatically built if they exist. |
273 | 283 | \item The generated attributes code was simplified with respect to |
|
0 commit comments