File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
\section {Changes in [UNRELEASED ] Rcpp version 0.11.2 }{
6
6
\itemize {
7
7
\item Implicit conversions , e.g. between \code {NumericVector } and
8
- \code {IntegerVector }, now throw warnings. These warnings can be
9
- disabled by defining \code {\# define RCPP_DONT_WARN_ON_COERCE}
10
- before including Rcpp , or by making the conversion explicit with
11
- e.g. \code {Rf_coerceVector }.
8
+ \code {IntegerVector }, will now give warnings if you use
9
+ \code {\# define RCPP_WARN_ON_COERCE} before including the Rcpp
10
+ headers.
12
11
\item Templated \code {List } containers , \code {ListOf < T > }, have been
13
12
introduced. When subsetting such containers , the return is assumed
14
13
to be of type T , allowing code such as
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ namespace Rcpp{
139
139
if (TYPEOF (x) == TARGET) {
140
140
return x;
141
141
} else {
142
- #ifndef RCPP_DONT_WARN_ON_COERCE
142
+ #ifdef RCPP_WARN_ON_COERCE
143
143
Shield<SEXP> result ( internal::r_true_cast<TARGET>(x) );
144
144
Rf_warning (" coerced object from '%s' to '%s'" ,
145
145
CHAR (Rf_type2str (TYPEOF (x))),
You can’t perform that action at this time.
0 commit comments