[Rcpp-devel] Fwd: Calling R function in Rcpp returns compatibility issues

2017-07-27 Thread Sharat
Hi: I'm trying to call a R function (that compares strings) in Rcpp and return the result to make the comparisons run faster. Am a noob with Rcpp; so please bear. The input to the R function is a matrix of 2 columns. The error is: *Error in getGoing(product) : Not compatible with STRSXP:

Re: [Rcpp-devel] Fwd: Calling R function in Rcpp returns compatibility issues

2017-07-27 Thread Sharat
Thanks James for the quick reply. Here you go: [image: Inline image 1] On Thu, Jul 27, 2017 at 9:14 AM, Balamuta, James Joseph < balam...@illinois.edu> wrote: > Greetings and Salutations Sharat, > > > > Could you supply some test data? > > > > Sincerely, >

Re: [Rcpp-devel] Fwd: Calling R function in Rcpp returns compatibility issues

2017-07-27 Thread Sharat
Thanks Serguei for clearing up the data structures. I did test the function in R but when I was printing out the results, rather than returning a vector; sorry about that. Will be much more careful. On Thu, Jul 27, 2017 at 9:47 AM, Serguei Sokol <serguei.so...@gmail.com> wrote: >

Re: [Rcpp-devel] Fwd: Calling R function in Rcpp returns compatibility issues

2017-07-27 Thread Sharat
Also, after your comments, it just hit me why not write the entire code in pure C++? Would that be worthwhile? On Thu, Jul 27, 2017 at 10:59 AM, Sharat <schmoo...@gmail.com> wrote: > Thanks Serguei for clearing up the data structures. I did test the > function in R but when I was