[Rd] existence of easy example of .Call??

Thomas Lumley tlumley at u.washington.edu
Fri Jul 30 17:28:04 CEST 2004

On Fri, 30 Jul 2004 Freja.Vamborg at astrazeneca.com wrote:

> Dear R-develers,
> I have been seraching in vain for an example of source-code, using .Call, to
> call an R-function from within C.
> Am also wondering i this .Call command works for all functions, say if I
> write a function analyse<-function()
> within my R functoin, can this function be called by the c-code called later
> in the same function.

There are examples using .C rather than .Call (for backwards
compatibility) in the survival package. The calls to R are in
cox_Rcallback.c and surv_callback.c


More information about the R-devel mailing list