From tlumley at u.washington.edu  Fri Jul 30 17:28:04 2004
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Fri Jul 30 17:28:36 2004
Subject: [Rd] existence of easy example of .Call??
In-Reply-To: <950E0EFCFDB083468E2A8BBC812E5E98954FBD@seludsmsx02.selu.astrazeneca.net>
References: <950E0EFCFDB083468E2A8BBC812E5E98954FBD@seludsmsx02.selu.astrazeneca.net>
Message-ID: <Pine.A41.4.58.0407300824590.153958@homer09.u.washington.edu>

On Fri, 30 Jul 2004 Freja.Vamborg@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

	-thomas


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