Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-19 Thread Dirk Eddelbuettel
Wu et al, I started to look into this last weekend, and Jeff kindly let me make some modifications on xts's side --- xts 0.9-2 now exports xtsAPI.h And a new RcppXts package, on CRAN as of today, uses it. I plan to post an example later on the Rcpp Gallery (http://gallery.rcpp.org). Cheers, Dir

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-13 Thread Dirk Eddelbuettel
On 13 January 2013 at 08:13, Jeff Ryan wrote: | Nice work.  I'll be frank, I am not overly interested in this from a practical | standpoint myself, since it doesn't solve a near term problem for me - not | being a C++ guy and all and being perfectly at home in the R API. That's ok. All an externa

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-12 Thread Dirk Eddelbuettel
On 12 January 2013 at 02:23, Wu Wush wrote: | In my experience, we could write some functions based on exposed API: | - Query a subset of xts object based on row | subset(`Rcpp::DatetimeVector` or integer vector) and column | subset(string vector or integer vector) That does not necessarily need

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Dirk Eddelbuettel
On 12 January 2013 at 02:23, Wu Wush wrote: | > A few quick questions to focus the discussion: | > - Do you have particular functions from the xts C API in mind? | > - Is what you are looking for already exported? | > - Is it in xts or in zoo? Would be need both? | > --- | > My question was about

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Wu Wush
> A few quick questions to focus the discussion: > - Do you have particular functions from the xts C API in mind? > - Is what you are looking for already exported? > - Is it in xts or in zoo? Would be need both? > --- > My question was about which C function in the xts API, and which unexported >

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Dirk Eddelbuettel
On 12 January 2013 at 00:16, Wu Wush wrote: | To handle xts in c++, I am using `Rcpp::RObject`, xts API, and some C functions | found in the source of xts. My question was about which C function in the xts API, and which unexported functions. We could start getting to those (particularly the ex

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Dirk Eddelbuettel
On 11 January 2013 at 11:11, Gabor Grothendieck wrote: | Just to be fair it should be pointed out that C/C++ is not the only | priority of the project. Also there have been more user contributions I truly and honestly love you guys and use zoo and xts daily. And even though I use them so much (a

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Wu Wush
Dear Dirk, > Exactly what type of access / use did you have in mind from C / C++? > > Recently, I am developing a trading system involving xts with my friends. To handle xts in c++, I am using `Rcpp::RObject`, xts API, and some C functions found in the source of xts. In my opinion, it might be

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Dirk Eddelbuettel
(Thanks for reposting on list. I had replied earlier to an email I was CCed on) On 11 January 2013 at 23:59, Wu Wush wrote: | Dear Dirk, | | I have seen your post in http://stackoverflow.com/questions/14274055/ | how-to-use-c-api-of-xts-package-in-rcpp .  | | What should we do to generalize the

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Gabor Grothendieck
On Fri, Jan 11, 2013 at 10:36 AM, Dirk Eddelbuettel wrote: > > Howdy, > > Thanks for bringing questions to the list, much appreciated! > > On 11 January 2013 at 23:10, Wu Wush wrote: > | Dear Dirk, > | > | I have seen your post in http://stackoverflow.com/questions/14274055/ > | how-to-use-c-api-o

[Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Wu Wush
Dear Dirk, I have seen your post in http://stackoverflow.com/questions/14274055/how-to-use-c-api-of-xts-package-in-rcpp . What should we do to generalize the include flag settings? Regards, Wush Wu ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge

Re: [Rcpp-devel] Integrate xts_API for C with Rcpp

2013-01-11 Thread Dirk Eddelbuettel
Howdy, Thanks for bringing questions to the list, much appreciated! On 11 January 2013 at 23:10, Wu Wush wrote: | Dear Dirk, | | I have seen your post in http://stackoverflow.com/questions/14274055/ | how-to-use-c-api-of-xts-package-in-rcpp .  | | What should we do to generalize the include fl