r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

Fix type_error when constructing integers & doubles #228

Closed alyst closed 3 years ago

alyst commented 3 years ago

I think it should mention REALSXP for doubles and INTSXP for integers when throwing type_error.

jimhester commented 3 years ago

Ok, that makes sense, thanks!