I am trying to build some simple test cases of Rcpp. One of the simplest I can think of is below.
#include <Rcpp.h>
int main ()
{
auto i = Rcpp::IntegerVector::create(1,2);
}
This compiles fine and links against libR, but segmentation faults when run. My test system is a Mac with clang++.
Is there an obvious reason this should not work?
Cheers,
Brook