Tiago Zortea
2010-Apr-17 23:35 UTC
[R] Error when creating 2 R instances on the same context.
Hello,
I'm getting an error when trying to create a secound R instance on the same
context, in my system R calls Fortran code that calls C++ code that ultimately
call R code again, but on this secound call I get this error.
Error in .Call("R_isMethodsDispatchOn", onOff, PACKAGE =
"base") :
Incorrect number of arguments (2), expecting 1 for R_isMethodsDispatchOn
Error in function (x, value, eval.env = parent.frame(1), assign.env =
parent.frame(1))The error only occur when there is already an R instance active,
executing the same C++ function directly does not cause errors. I searched alot
for a solution, even found people with exactly the same issue like
http://n4.nabble.com/calling-Rf-initEmbeddedR-twice-gives-an-error-td923063.html,
asked them but noone found a solution.
The exact line that produces the error is.
R = new RInside (argc, argv); // create an embedded R instance
and I'm using R 2.10 on a Ubuntu OS.
Any help will be aprecciated even pointing at wich documentation I can find
help.
Thanks in advance,
Tiago Zortea
_________________________________________________________________
veja como
[[alternative HTML version deleted]]
