search for: _loadsets

Displaying 1 result from an estimated 1 matches for "_loadsets".

2003 Oct 04
3
More questions about R extension programming
...ld like to utilize these modules in R rather than writing R code to > read in these files (and also to learn about R extensions). Thanks for the pointers to the above question. I have a few more! 1) I would like my C function to be passed a character string. Thus I define the function as SEXP _loadsets(SEXP filename) { FILE *f; PROTECT(filename = AS_CHARACTER(filename)); f = fopen(filename,"r"); UNPROTECT(1); ..... ..... } However compiling it gives me: loadset.c: In function `_loadsets': loadset.c:25: warning: passing arg 1 of `fopen' from incompatible pointe...