There are lots of examples of sending integers to C++ from R, but none I can find of sending strings.
What I want to do is quite simple:
SEXP convolve(SEXP filename){
pfIn = fopen(filename, "r");
}
This gives me the following compiler error: loadFile.cpp:50: error: cannot convert 'SEXPREC*' to 'const char*' for argument '1' to 'FILE* fopen(const char*, const char*)'
So I need to convert filename to a const char*? Do I use CHAR?