Ha. That's simultaneously kinda funny and kinda painful. It was embedded
into an Rmd Rcpp chunk and I forgot the C++ entry point... sigh.
THK
http://www.keittlab.org/
On Thu, Mar 8, 2018 at 12:20 PM, Dirk Eddelbuettel wrote:
>
> Tim,
>
> Three distinct errors:
>
> - no wrapping function, so so
Tim,
Three distinct errors:
- no wrapping function, so sourceCpp() was the wrong paradigm
- no inclusion of Rcpp.h so types unknown (agem)
- wrong calling convention for runif(), cannot be empty.
The following compiles, it may still be nonsensical.
Dirk
// [[Rcpp::depends(BH)]]
// [[Rcpp::pl
I must be going blind or something because I cannot see the error here.
sourceCpp(code = '
// [[Rcpp::depends(BH)]]
// [[Rcpp::plugins(cpp11)]]
#include
#include
#include
using key_type = boost::geometry::model::d2::point_xy;
using range_type = std::vector;
range_type data;
data.reserve(1e6)