Hello, everybody, I created a R package which includes C code. But I load this package, and carry out the R function in it. It shows C function is not in load table as follows. Would you tell me what is the problem? Where do I make mistake? Maggie [Previously saved workspace restored]> library(var)Attaching package 'var': The following object(s) are masked _by_ .GlobalEnv : b> wxt0124()Error in .C("wxt1221") : C function name not in load table
On Wed, 9 Mar 2005 18:54:36 -0500, xt_wang at cse.concordia.ca wrote :> >Hello, everybody, > >I created a R package which includes C code. But I load this package, and carry >out the R function in it. It shows C function is not in load table as follows. >Would you tell me what is the problem? Where do I make mistake?You aren't giving enough information for anyone to know that. You need to tell us exactly what you did to create your package, and what operating system you're on. Duncan Murdoch> >Maggie > > > >[Previously saved workspace restored] > >> library(var) > >Attaching package 'var': > > > The following object(s) are masked _by_ .GlobalEnv : > > b > >> wxt0124() >Error in .C("wxt1221") : C function name not in load table > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! R-project.org/posting-guide.html
" C function name not in load table" means that youe DLL/SO file is not loaded. You should use .First.lib <- function(lib, pkg) { library.dynam("your_pkg_name", pkg, lib) } Regads, Samuel. Duncan Murdoch <murdoch@stats.uwo.ca> wrote: On Wed, 9 Mar 2005 18:54:36 -0500, xt_wang@cse.concordia.ca wrote :> >Hello, everybody, > >I created a R package which includes C code. But I load this package, and carry >out the R function in it. It shows C function is not in load table as follows. >Would you tell me what is the problem? Where do I make mistake?You aren't giving enough information for anyone to know that. You need to tell us exactly what you did to create your package, and what operating system you're on. Duncan Murdoch> >Maggie > > > >[Previously saved workspace restored] > >> library(var) > >Attaching package 'var': > > > The following object(s) are masked _by_ .GlobalEnv : > > b > >> wxt0124() >Error in .C("wxt1221") : C function name not in load table > >______________________________________________ >R-help@stat.math.ethz.ch mailing list >stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! R-project.org/posting-guide.html______________________________________________ R-help@stat.math.ethz.ch mailing list stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! R-project.org/posting-guide.html --------------------------------- [[alternative HTML version deleted]]