R is primarily written in C, with some parts in Fortran and R itself. While R can interface with C++, it's not primarily written in C++.