I have a package that uses Rcpp. It has different C++ function defined int src/testr.h. Now at some point I need to generate Rcpp functions (using cppFunction or cxxfunction) that use things defined in src/testr.h. How can I do that?
I tried,
> cxxfunction(signature(x="list") includes = c('#include "testr.h"'), body=sprintf(template, name, name))
> Rcpp::cppFunction(depends = "testr", includes = c('#include "src/testr.h"'), sprintf(template, name, name))
But
file7086270f0da.cpp:7:10: fatal error: 'testr.h' file not found
#include "testr.h"
^