From tlumley at u.washington.edu  Thu Jul  7 01:43:23 2005
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Wed, 6 Jul 2005 16:43:23 -0700 (PDT)
Subject: [Rd] Problem with dyn.load...or else...
In-Reply-To: <6.2.1.2.1.20050706190146.0234a740@magellan.umontreal.ca>
References: <6.2.1.2.1.20050706190146.0234a740@magellan.umontreal.ca>
Message-ID: <Pine.A41.4.61b.0507061636110.109146@homer05.u.washington.edu>

On Wed, 6 Jul 2005, [iso-8859-1] Marie-Hlne  Ouellette wrote:

> And try to use the function:
> > K_MEANSR(tab,centers=c(2,4))
> [1] "AA"
> [1] "AAA"
> [1] "A"
> [1] "B"
> Error in .C("K_MEANSC", xrows = as.integer(xrows), xcols =
> as.integer(xcols),  :
>         "C" function name not in load table
>

Hmm. Strange.  R doesn't think your C function is called K_MEANSC (I 
assume that K_MEANSC *is* actually the name of your C function.)

In a Terminal window you can use
   nm K_MEANSC.so
to see all the names of externally visible objects in your DLL. This would 
narrow down whether the change of names is happening in R or in 
compilation.

 	-thomas



[Rd] Problem with dyn.load...or else...
Thomas Lumley