Small example of how to call into R code from C.