Skip to content

Commit 56b7ecc

Browse files
added omitted is__simple<Rcomplex>. needed for tidyverse/dplyr#933
1 parent 68a0ff7 commit 56b7ecc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-04-14 Romain Francois <[email protected]>
2+
3+
* inst/include/Rcpp/api/meat/is.h: added is__simple<Rcomplex>
4+
15
2015-04-12 Dirk Eddelbuettel <[email protected]>
26

37
* vignettes/Rcpp-FAQ.Rnw: Also load Rcpp to make cppFunction visible

inst/include/Rcpp/api/meat/is.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ namespace Rcpp {
4545
template <> inline bool is__simple<String>(SEXP x) {
4646
return is_atomic(x) && TYPEOF(x) == STRSXP;
4747
}
48+
template <> inline bool is__simple<Rcomplex>(SEXP x) {
49+
return is_atomic(x) && TYPEOF(x) == CPLXSXP;
50+
}
4851
template <> inline bool is__simple<CharacterVector>(SEXP x) {
4952
return TYPEOF(x) == STRSXP;
5053
}

0 commit comments

Comments
 (0)