I am packing a bunch of my functions into an R package. My problem is that I have both .f90 code and c++ (through Rcpp) which I want to be compiled separately in two different shared libraries, also because they need different includes/link options.
I found only the package "grDevices" which has 2 shared libraries, and there the problem is solved using subdirectories with adapted Makefiles, whose syntax is however voodoo for me. Are there other examples out there?
Can I achieve what I want without expliciting everything in a Makefile, for example using just the Makevars file? Any hint appreciated. Cheers, domanov