R and C++