Re: [Rd] How can I call a function R from C

2006-11-22 Thread Jeffrey Horner
Ricardo Rios wrote: > Hi wizards, I have a function in R for example: > anyfunction<-function(beta0, popsize, maxgen), > > but I have a function in C for example: > > SEXP otherfunction(SEXP beta0, SEXP popsize, SEXP maxgen) > > I call it function with .Call but I need to call to anyfunction o

[Rd] How can I call a function R from C

2006-11-22 Thread Ricardo Rios
Hi wizards, I have a function in R for example: anyfunction<-function(beta0, popsize, maxgen), but I have a function in C for example: SEXP otherfunction(SEXP beta0, SEXP popsize, SEXP maxgen) I call it function with .Call but I need to call to anyfunction on otherfunction. Does somebody know