[Rd] .Call interface: Use R SEXP as C mutable *char

2013-03-01 Thread Michael Bach
les). What is the recommended approach here? Best Regards, Michael Bach __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] .Call interface: Use R SEXP as C mutable *char

2013-03-02 Thread Michael Bach
On 3/1/13 11:32 PM, Simon Urbanek wrote: I am trying to do something along the lines of: SEXP test_fun (SEXP filename) { const char *inputfile = translateChar(STRING_ELT(filename, 0)); int abc = some_function(inputfile); ... } The code compiles fine, but I get a warning: "passing argument o