Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Gabor Grothendieck
On Fri, Mar 1, 2013 at 9:50 PM, Dirk Eddelbuettel wrote: > > On 1 March 2013 at 21:24, Hadley Wickham wrote: > | > | I searched BH for regex and found nothing so I don't think BH includes > | > | Boost.Regex. > | > > | > Could you register an issue ticket at the r-forge page for BH, please? > Th

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Dirk Eddelbuettel
On 1 March 2013 at 21:24, Hadley Wickham wrote: | > | I searched BH for regex and found nothing so I don't think BH includes | > | Boost.Regex. | > | > Could you register an issue ticket at the r-forge page for BH, please? There | > are other things missing too, of course, as we started pretty w

Re: [Rcpp-devel] reference classes in C++ :is it possible?

2013-03-01 Thread Steven Varga
Hi Dirk, yes it would, 1) my_class::my_method delegates to ReferenceClass::my_method [c++ method exported] 2) ReferenceClass(R)::my_method callSuper() --> [ infinite recursion!!! ] 3) smoke + possible explosion + ... random events from HR department or some benefits: 1) my_class::my_method dele

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Hadley Wickham
> | I searched BH for regex and found nothing so I don't think BH includes > | Boost.Regex. > > Could you register an issue ticket at the r-forge page for BH, please? There > are other things missing too, of course, as we started pretty with the needs > of "just" bigmemory and RcppBDT. But Boost.

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Dirk Eddelbuettel
Gabor, Here is a quick variant of one of the Boost regexp examples, particularly http://www.boost.org/doc/libs/1_53_0/libs/regex/example/snippets/credit_card_example.cpp // cf www.boost.org/doc/libs/1_53_0/libs/regex/example/snippets/credit_card_example.cpp #include #include #include bool

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Dirk Eddelbuettel
On 1 March 2013 at 20:01, Gabor Grothendieck wrote: | On Fri, Mar 1, 2013 at 7:55 PM, Dirk Eddelbuettel wrote: | > Other than Boost, we could possibly get access to the regexp libraries | > already linked into R. What use case did you have in mind? | > | | I searched BH for regex and found noth

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Gabor Grothendieck
On Fri, Mar 1, 2013 at 7:55 PM, Dirk Eddelbuettel wrote: > > On 1 March 2013 at 19:41, Gabor Grothendieck wrote: > | Are there any packages that use Rcpp that use regular expressions? > > Great question. And not that I know of! > > Now that we have the BH package (for really easy access to Boost b

Re: [Rcpp-devel] Regular Expressions

2013-03-01 Thread Dirk Eddelbuettel
On 1 March 2013 at 19:41, Gabor Grothendieck wrote: | Are there any packages that use Rcpp that use regular expressions? Great question. And not that I know of! Now that we have the BH package (for really easy access to Boost by using Boost headers via this CRAN package) I was thinking about a

[Rcpp-devel] Regular Expressions

2013-03-01 Thread Gabor Grothendieck
Are there any packages that use Rcpp that use regular expressions? -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.o

Re: [Rcpp-devel] reference classes in C++ :is it possible?

2013-03-01 Thread Dirk Eddelbuettel
Hi Steven, On 1 March 2013 at 14:34, Steven Varga wrote: | | Hello |   | First thanks Dirk for the quick reply and the hint; Mr.  John Chamber's | implementation is great! gone through the documentation and followed his | instructions. Worked well.  Only one way though -- as you pointed out. |  

Re: [Rcpp-devel] reference classes in C++ :is it possible?

2013-03-01 Thread Steven Varga
Hello First thanks Dirk for the quick reply and the hint; Mr. John Chamber's implementation is great! gone through the documentation and followed his instructions. Worked well. Only one way though -- as you pointed out. I was able to get the fields from the extended class; if someone could poin

Re: [Rcpp-devel] Can I fill a matrix row by row with std (or similar)

2013-03-01 Thread Dirk Eddelbuettel
On 1 March 2013 at 17:15, stat quant wrote: | Hello list, | I have several std::vector in a STL container and would like to fill a | Rcpp::NumericMatrix row by row with them, is there an easy way to do it, or One (often mentioned) issue is that storage really is column-wise so you could consider

[Rcpp-devel] Can I fill a matrix row by row with std (or similar)

2013-03-01 Thread stat quant
Hello list, I have several std::vector in a STL container and would like to fill a Rcpp::NumericMatrix row by row with them, is there an easy way to do it, or should I iterate over all elements as in usual C++? I saw the `_` in this post on SO but I think it has a different purpose. cCode <- '