Displaying 1 result from an estimated 1 matches for "callrfromc".
Did you mean:
ncallrfromc
2005 Jun 30
0
Relationship between dyn.load and library.dynam
...trying to do is create a compiled shared library that is able
to access the SEXP data type.
To do this I wrtie the code in C, run R CMD SHLIB to generate the file
MyOut.so. I then build a package
with the following function:
.First.lib<-function(lib, pkg){
dyn.load(x="/home/phineas/pkg/CallRFromC/R/MyOut.so")
library.dynam(chname="MyOut")
}
The use of hard wired paths is to simplify development
When I run R CMD check on the package I get
* checking S3 generic/method consistency ... WARNING
Error: .First.lib failed for 'CallRFromC'
Call sequence:
2: stop(gettext...