[Rd] Problem with C code under R2.2 only.

2005-11-10 Thread nwew
stem and foreign language interfaces' of the 'Writing R Extensions' manual. * checking Rd files ... OK * checking for missing documentation entries ... ERROR Error: .First.lib failed for 'SBMLodeSolveR' Help is highly appreciated. Eryk Witold Eryk Wol

[Rd] Error: .First.lib failed for 'SBMLodeSolveR'

2005-10-11 Thread nwew
Dear R-developers, I am getting the following error message (see bottom of e-mail) and can't make a clue out of it. The zzz.R file contains .First.lib <- function(lib, pkg) library.dynam("SBMLodeSolveR",pkg,lib) .Last.lib <- function(libpath) library.dynam.unload("SBMLodeSolveR", libpath) Ther

[Rd] Problems with autoconf example from r-ext.

2005-10-05 Thread nwew
Dear R-developers, I am trying to reproduce the autoconf.ac example from R-ext and fail. My autoconf file looks like this [autoconf.ac] # original by Friedrich Leisch, much changed by BDR AC_INIT([SBMLodeSolveR]) dnl Select an optional include path, from a configure option dnl or from an envir

[Rd] NUMERIC_POINTER question

2005-09-13 Thread nwew
Dear R-developers, Using .Call I pass a S4 class with e.g. the following class definition: setClass("mmatrix",representation( data="matrix") ) On the "C side" i do mat = GET_SLOT(vs,install("data")); and then: printf("%f\n",NUMERIC_POINTER(mat)[1]); The above print statement produces the co

[Rd] dyn.load error -- undefined symbol: ...

2005-09-11 Thread nwew
Dear R-developers, I am working on an C interface to some c functions. I compiled the c file using R CMD SHLIB without any compilation errors. All libs used are added to the LD_LIBRARY_PATH. However dyn.load("interface.so") produces undefined symbol: N_VNew_Serial; which is defined in one of t