Rcpp examples, that is R scripts that call C++ code.
- 1: int DoMagic(const int a, const int b)
- 2: int DoMagic(const std::vector& v), C++98
- 3: int DoMagic(const std::vector& v), C++11 UNTESTED (fails at R version <3.1.2)
- 4: 1 with automatic repository setup and library install
- 5: 2 with automatic repository setup and library install, C++98
- 6: 3 with automatic repository setup and library install, C++11 UNTESTED (fails at R version <3.1.2)