R package with both .c and .cpp files with Rcpp
问题 I'm trying to build an R package which contains both C (in the form of .c files) and C++ code (in the form of .cpp files) using the Rcpp package as a dependency. I have a couple of questions. First, is it actually possible to do this? Can one call C scripts and C++ scripts that are in the same R package? If the previous is possible, how then does one properly register the functions in the C and C++ scripts. To help with this, I have set up a little example which is available on my GitHub page