Hello, I’ve looking to a toy exercice: using a C++ shared library in a R package (Linux only)
- I want to create a shared library with a function foo that just takes a std::vector and multiplies it by 2.
- Create a toy package with Rcpp that can use this function from the .so
I found 2/3 resources online but it is either theoretical (no example) or describing how to write C++ sources and use in a package.
Would someone know a good resource or can help me with examples ?
Regards