Re: [Rcpp-devel] What is the best practice to expose a C st ructure from 3rd party library into R?

2013-07-22 Thread Dirk Eddelbuettel
Hi Wush, Nice work on Rhiredis. I had some time to look more closely and have some comments below. In sum, you may have made things too complicated. But hey, you have a full working example which isn't too bad! Well done. On 22 July 2013 at 06:57, Dirk Eddelbuettel wrote: | On 22 July 2013 a

Re: [Rcpp-devel] What is the best practice to expose a C structure from 3rd

2013-07-22 Thread Steve Jaffe
On: Mon, 22 Jul 2013 16:12:54 +0800 Wush Wu wrote: > Subject: [Rcpp-devel] What is the best practice to expose a C > structure from 3rd party library into R? > However, I still want to know if there is a better approach. I tried three > approaches. Have you considered the 'rdyncall' pack

Re: [Rcpp-devel] What is the best practice to expose a C structure from 3rd

2013-07-22 Thread Dirk Eddelbuettel
On 22 July 2013 at 09:31, Steve Jaffe wrote: | On: Mon, 22 Jul 2013 16:12:54 +0800 | Wush Wu wrote: | | > Subject: [Rcpp-devel] What is the best practice to expose a C | > structure from 3rd party library into R? | | > However, I still want to know if there is a better approach. I tried thr

Re: [Rcpp-devel] What is the best practice to expose a C st ructure from 3rd party library into R?

2013-07-22 Thread Dirk Eddelbuettel
On 22 July 2013 at 13:19, rom...@r-enthusiasts.com wrote: | Le 2013-07-22 10:12, Wush Wu a écrit : | > Hi all, | > | > I wrote a wrapper of hiredis, which is a minimalistic C client for | > the | > Redis database. Its name is `Rhiredis` and is much faster than | > rredis, | > an existed redis cl

Re: [Rcpp-devel] What is the best practice to expose a C structure from 3rd party library into R?

2013-07-22 Thread romain
Le 2013-07-22 10:12, Wush Wu a écrit : Hi all, I wrote a wrapper of hiredis, which is a minimalistic C client for the Redis database. Its name is `Rhiredis` and is much faster than rredis, an existed redis client of R. Please see http://rpubs.com/wush978/rhiredis [1] for details.  Cool. T

[Rcpp-devel] What is the best practice to expose a C structure from 3rd party library into R?

2013-07-22 Thread Wush Wu
Hi all, I wrote a wrapper of hiredis, which is a minimalistic C client for the Redis database. Its name is `Rhiredis` and is much faster than rredis, an existed redis client of R. Please see http://rpubs.com/wush978/rhiredis for details. Thanks for the Rcpp, it is much easier to wrap a C library