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