Bálint Czúcz
2006-Aug-15 07:21 UTC
[R] how to call forth a class definition buried in a package
Dear list,
I would like to use this C call:
tmp <- .Call("R_MPinv", covariance, tol, svdmem)
but it gives me the following error:
Error in getClass("LinStatExpectCovarMPinv") :
"LinStatExpectCovarMPinv" is not a defined class
I think the reason for this is that the C code starts with this call:
PROTECT(ans = NEW_OBJECT(MAKE_CLASS("LinStatExpectCovarMPinv")));
....
and the Class definition for "LinStatExpectCovarMPinv" hides deep
buried in package "party".
Were it not for the C call, i could avoid this error by specifying a
"where=" argument to GetClass(). But what can I do now?
Thank you!
B?lint
--
Cz?cz B?lint
PhD hallgat?
BCE KTK Talajtan ?s V?zgazd?lkod?s Tansz?k
1118 Budapest, Vill?nyi ?t 29-43.