Re: [Rd] Using other peoples packages from within C-based R-extension

From: Jeffrey Ryan <jeffrey.ryan_at_lemnica.com>
Date: Tue, 24 Apr 2012 13:35:29 -0500


This link may be of help as well...

https://stat.ethz.ch/pipermail/r-devel/2008-November/051262.html

HTH
Jeff

On 4/24/12 12:35 PM, "oliver" <oliver_at_first.in-berlin.de> wrote:

>Hello,
>
>OK, thanks for the information...
>
>
>On Tue, Apr 24, 2012 at 12:02:33PM -0500, Dirk Eddelbuettel wrote:
>>
>> On 24 April 2012 at 12:39, Duncan Murdoch wrote:
>> | 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.
>>
>> And there are over 120 packages providing access:
>>
>> CITAN Cubist GOSim KernSmooth MASS MSBVAR Matrix NetComp PMA
>>PopGenome
>> QuACN RCurl RODBC RTextTools Rcpp Rigroup Rlabkey Rmosek Rmpfr Rook
>>Rserve
>> Runuran SASxport SMCP SoDA TraMineR XML actuar adaptivetau akima
>>aster
>> aster2 bcv bda blme boolfun bstats canvas caret catnet cgh chron
>>class
>> climdex.pcic clpAPI clue cluster copula cplexAPI cplm datamap devEMF
>> edesign expm fastICA fastcluster ff flsa foreign fracdiff
>>fuzzyRankTests
>> gb glpkAPI gmp gputools grpreg gsmoothr heavy hypred ifs ifultools
>>int64
>> interactivity kza lattice lfe lme4 locfit lpSolveAPI markdown mgcv
>>minqa
>> mugnet ncvreg nlme nnet pedigreemm phangorn phmm potts ppstat qtbase
>> qtpaint quadprog rPorta randtoolbox rcdd rdyncall rgeos rggobi
>>rmongodb
>> rngWELL robustbase rpart rphast rrp rtfbs sde sensitivityPStrat sp
>>spatial
>> spdep spsurvey spt tree tripack uncompress vines xlsReadWrite xts
>>yaml zoo
>[...]
>
>But no wavelets stuff... (?)
>(It was more than an example, I'm look for wavelet decompositioning.)
>
>
>>
>> Matrix and lme4 is the prototypical example by R Core, MASS also
>>provides
>> something. I'd probably start with zoo and xts ...
>[...]
>
>You mean with "start with" that I could look how to allow exporting
>for my own package?
>
>At the moment I'm rather looking for how to import symbols and access
>fnuctionality
>of othera people's packages ...
>
>
>Ciao,
> Oliver
>
>______________________________________________
>R-devel_at_r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-devel



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 24 Apr 2012 - 18:37:01 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 Apr 2012 - 12:40:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive