R and C++ integration