This document discusses extending R with C code. It motivates combining R and C by noting that C code can speed up parts of R programs and allow access to C libraries. It then provides an example of calling a C function from R that returns an integer and examples of passing different R object types to C. It recommends compiling C code into a shared library and loading that into R using dyn.load.