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

nwew W.E.Wolski at newcastle.ac.uk
Tue Oct 11 18:05:32 CEST 2005


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)

There is a SBMLodeSolveR.so file in the src directory which works if loaded 
with 
dyn.load("/data/devel/SBMLodeSolveR/SBMLodeSolveR/src/SBMLodeSolveR.so")

The error/warning messages are:

* checking S3 generic/method consistency ... WARNING
Error: .First.lib failed for 'SBMLodeSolveR'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
       domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
* checking replacement functions ... WARNING
Error: .First.lib failed for 'SBMLodeSolveR'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
       domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
In R, the argument of a replacement function which corresponds to the right
hand side must be named 'value'.
* checking foreign function calls ... WARNING
Error: .First.lib failed for 'SBMLodeSolveR'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
       domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See section 'System and foreign language interfaces' of the 'Writing R
Extensions' manual.
*


Eryk



More information about the R-devel mailing list