R-alpha: "[[<-" drops attributes

Robert Dunne (dunne@yarra.vut.edu.au)
Thu, 15 Aug 96 14:23:13 EST

Date: Thu, 15 Aug 96 14:23:13 EST
Message-Id: <9608150423.AA06406@yarra.vut.edu.au.vut.edu.au>
From: Robert Dunne <dunne@yarra.vut.edu.au>
To: r-testers@stat.math.ethz.ch

hi R  users,

does anyone know of a way to do "static" loading of an executable into R?
The reason I want to do this is that I want to debug fortran code 
that is linked to R.

The S+ way of doing this is to do a static loading and then attach the gdb 
debugger to the running S+ process, put a breakpoint in the fortran code and 
then call the fortran function from within S+ (thanks to 
David M. Smith who explained this on aus.stats.s).

I tried to do this with the zero.c example in demos/dynload. This is what I did

1)I first put zero.c in the src/main directory, edited the Makefile and
   compiled R.

2) nm revealed that the symbols "zero_find", etc are in fact loaded into R

lycra> nm R.binary |grep zero_find
       0806e2a0 T zero_find

3) I ran R and tried to call zero_find

>cube1 <- function(x) (x^2+1)*(x-1.5)
>x0 <- zero(cube1, c(0,5))
  Error in .C("zero_find",  : C/Fortran function not in load table

and it tells me that the function is not in the load table.
Any ideas about how can I get it into the load table?

			thanks all

* Rob Dunne  
* Victoria University of Technology , Footscray Campus      
* Department of Computer and Mathematical Sciences                
* P.O. 14428, MCMC.                   Fax:   +61 3 9688 4050  
* MELBOURNE 8001, AUSTRALIA           Tel:   +61 3 9688 4757   
* (http://dingo.vut.edu.au/~robertd)  Email: dunne@matilda.vut.edu.au
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch