Hello List,<br><br>I wrote a C++ program that does the following:<br><br>**************************************************************<br><br>int main (int argc, char **argv)<br>{<br> RInside* temp_1 = new RInside (argc, argv)<br>
<br> // use temp_1 to load "temp_1.RData", and invoke<br> // functions that are defined within "temp_1.RData"<br><br> ......<br><br> // Delete the created RInside instance<br><br> delete temp1;<br>
<br> // create another RInside instance, as we now would<br> // like to load "temp_2.RData" and invoke functions<br> // defined within "temp_2.RData"<br><br> RInside* temp_2 = new RInside (argc, argv)<br>
<br> // use temp_2 to invoke operations within "temp_2.RData"<br><br> ....<br><br> // Delete the created RInside instance<br><br> delete temp_2;<br>}<br><br>*********************************************************************<br>
<br>The above described program crashes when we try to create the "temp_2" RInside object, and gives the following error:<br><br>Error in .Call("R_isMethodsDispatchOn", onOff, PACKAGE = "base") :
<br> Incorrect number of arguments (2), expecting 1 for R_isMethodsDispatchOn
<br><br>Can you please let me know what should I do to properly delete the "temp_1" RInside object, so that I could create "temp_2" RInside object and proceed with my program?<br><br>Thanks,<br>P.<br>