Hi!<br><br>I&#39;m new to the group, to rcpp and to C++ also :-P<br><br>I&#39;m trying to embed R in a little program which loads a txt file, parses it into an object and calls a function developed by our R coders.<br><br>

What I aim to do is to move one of our actual Java procedures (built on Java/Rserve architecture) to C++/RInside/Rcpp, I think we could have lot of improvements in this way.<br><br>This is a snippet of the procedure:<br>
<br>
    R[&quot;nav_in&quot;] = Rcpp::wrap(input.nav);<br>    R[&quot;cashFlows_in&quot;] = Rcpp::wrap(input.cashFlows);<br>    R[&quot;dates_in&quot;] = Rcpp::wrap(input.dates);<br>    R[&quot;indexesBmk_in&quot;] = Rcpp::wrap(input.indexesBmk);<br>

    R[&quot;weightsBmk_in&quot;] = Rcpp::wrap(input.weightsBmk);<br>    R[&quot;benchmark_in&quot;] = Rcpp::wrap(input.benchmark);<br>    R[&quot;datesBmk_in&quot;] = Rcpp::wrap(input.datesBmk);<br>    R[&quot;creationDate_in&quot;] = Rcpp::wrap(input.creationDate);<br>

    R[&quot;activationDate_in&quot;] = Rcpp::wrap(input.activationDate);<br>    R[&quot;finalDate_in&quot;] = Rcpp::wrap(input.finalDate);<br>    R[&quot;start_in&quot;] = Rcpp::wrap(input.start);<br>    R[&quot;type_in&quot;] = Rcpp::wrap(input.type);<br>

<br>    SEXP res;<br><br>    string evalstr = &quot;res &lt;- portfolioBenchmark(nav_in, cashFlows_in, dates_in, indexesBmk_in, weightsBmk_in, benchmark_in, datesBmk_in, creationDate_in, activationDate_in, finalDate_in, start_in, type_in); res&quot;;<br>

    res = R.parseEval(evalstr);<br><br>What I obtain is the following:<br><br>Errore in .Call(&quot;R_isMethodsDispatchOn&quot;, onOff, PACKAGE = &quot;base&quot;);<br>   Numero di argomenti errato (2), ce ne vogliono 1 per R_isMethodsDispatchOn<br>

terminate called after throwing an instance of &#39;Rcpp::binding_not_found&#39;<br>what(): binding not found: &#39;.AutoloadEnv&#39;<br>Aborted<br><br>Excuse for the message, which is an Italian/English mix... <br>What is this error about ? And then... the result of the &quot;portfolioBenchmark&quot; function should be a list..How can I convert the returned SEXP res into a list ?<br>

<br>Thanks in advance,<br>Alessandro Torrisi.<br><br>