From murdoch.duncan at gmail.com  Tue Apr 24 18:39:16 2012
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Tue, 24 Apr 2012 12:39:16 -0400
Subject: [Rd] Using other peoples packages from within C-based
	R-extension
In-Reply-To: <20120424163137.GE2152@siouxsie>
References: <20120424163137.GE2152@siouxsie>
Message-ID: <4F96D734.4020409@gmail.com>

On 24/04/2012 12:31 PM, oliver wrote:
> Hello,
>
> what if I want to write a package mixed R/C-extension
> and want to use code that is provided by other peoples packages?
>
> How for example can I use one of the provided wavelet packages
> from within my C-based R-extension?
>
> Somehow I would need to load the other packages and have access to the
> functions they provide.
> I mean I don't want to use the other packages via R-level, but directly
> on the C-layer. Something like shared libs (dlopen and such stuff)
> but via R-API.
>
> Is there a general aproach to this, and how to do it?

See "Registering native routines" in the Writing R Extensions manual.

Duncan Murdoch



[Rd] Using other peoples packages from within C-based R-extension
Duncan Murdoch