C++ and R