<br><font size=2 face="sans-serif">Hi everyone. </font>
<br>
<br><font size=2 face="sans-serif">I need to embed an R function in a class
function. I have seen in all of the examples that the embed of R always
is made in the main function. It possible to do it in a class function?
</font>
<br><font size=2 face="sans-serif">How would be? </font>
<br>
<br><font size=2 face="sans-serif">I tried to do it, and first argc, argv
variables were expected. Then i assigned values to this variables in this
way: </font>
<br>
<br><font size=2 face="sans-serif">const char *agv = &quot;./main&quot;;
&nbsp;//No parameters are needed by the main function</font>
<br><font size=2 face="sans-serif">int agc = 1;</font>
<br><font size=2 face="sans-serif">RInside R(agc,&amp;agv); &nbsp;// create
an embedded R instance</font>
<br>
<br><font size=2 face="sans-serif">In this case no error were found at
compiling, but the embed didn't work. </font>
<br>
<br><font size=2 face="sans-serif">If some of you have some idea i would
appreciate your help. </font>
<br>
<br><font size=2 face="sans-serif">Best regards. </font>
<br>
<br><font size=2 face="sans-serif">César </font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">&nbsp;</font>