[R] Error in dyn.load()

2007-07-12 Thread Tae-Hoon Chung
Hi, All; I tried to load the 'genetics' library but it failed with the following message. Can you help me with this? Thanks in advance. > library(genetics) Loading required package: gdata Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/Library

Re: [R] Error in dyn.load

2003-09-02 Thread Philip Silva
Yes, but not exactly enough.. I didn't put the R-#includes in the extern "C"-part but know everything works fine. Thank you very much! Prof Brian Ripley wrote: Did you follow the instructions in Writing R Extensions? You need to make sure you include the proper header files, as length is a C and

Re: [R] Error in dyn.load

2003-09-01 Thread Thomas W Blackwell
Philip - Why not compile and load using the unix command line: R CMD SHLIB rather than try to write your own compiler flags ? See help("SHLIB"), help("COMPILE") inside R. You may have a good reason for NOT going the ordinary route, but you need to tell us what it is. And do try the ordin

Re: [R] Error in dyn.load

2003-09-01 Thread Prof Brian Ripley
Did you follow the instructions in Writing R Extensions? You need to make sure you include the proper header files, as length is a C and not C++ export from R.bin, and in any case it is remapped in R. On Mon, 1 Sep 2003, Philip Silva wrote: > Hi, > > I've created a shared library from including

[R] Error in dyn.load

2003-09-01 Thread Philip Silva
Hi, I've created a shared library from including this code (with g++ -I/usr/local/lib/R/include -I/usr/local/include -c Rtest.cpp; g++ -shared -L/usr/local/lib -o Rtest.so Rtest.cpp): void check_data (SEXP data) { int l=length (data); } But when I try to load it in R I get this error message: