Re: [Rcpp-devel] Regular Expressions

2013-03-05 Thread Dirk Eddelbuettel
On 5 March 2013 at 07:25, Gabor Grothendieck wrote: | I did rebuild boost from source as part of this since I also figured | that might be a problem. On Windows there is a tool that is used in | rebuilding the source (presumably similar to configure on UNIX) and I | rebuilt that tool from source

Re: [Rcpp-devel] Regular Expressions

2013-03-05 Thread Gabor Grothendieck
On Mon, Mar 4, 2013 at 9:09 PM, Dirk Eddelbuettel wrote: > > On 4 March 2013 at 20:18, Gabor Grothendieck wrote: > | I had no luck with sourceCpp or inline on Windows but did manage to > | use R CMD SHLIB to build a dll which loads into 32-bit R (it does not > | currently load in 64-bit R - haven'

Re: [Rcpp-devel] Regular Expressions

2013-03-04 Thread Dirk Eddelbuettel
On 4 March 2013 at 20:18, Gabor Grothendieck wrote: | I had no luck with sourceCpp or inline on Windows but did manage to | use R CMD SHLIB to build a dll which loads into 32-bit R (it does not | currently load in 64-bit R - haven't yet figured out why) and seems to | run ok there. To get it to w

Re: [Rcpp-devel] Regular Expressions

2013-03-04 Thread Gabor Grothendieck
On Fri, Mar 1, 2013 at 8:56 PM, Dirk Eddelbuettel wrote: > > 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

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
Gabor, Here is a completely new, second variant of the same example, this time implemented using only inline with a custom plugin. This should have what you need. Code first: - edd@max:/tmp$ cat boostregex.R library(i

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
On 2 March 2013 at 20:59, Gabor Grothendieck wrote: | > | If I use the MinGW from nuewn and run this from the Windows cnd line I | > | get no errors or warnings (note that ^ must be the last character on | > | the line to escape the newline): | > | | > | C:\MinGW\set_distro_paths.bat | > | g++ -DN

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Gabor Grothendieck
On Sat, Mar 2, 2013 at 8:54 PM, Dirk Eddelbuettel wrote: > > On 2 March 2013 at 20:39, Gabor Grothendieck wrote: > | On Sat, Mar 2, 2013 at 7:05 PM, Dirk Eddelbuettel wrote: > | > Sorry that this is so frustrating, but this (IMNSHO) all just Windows... > | > > | > I would try two things: > | > >

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
On 2 March 2013 at 20:39, Gabor Grothendieck wrote: | On Sat, Mar 2, 2013 at 7:05 PM, Dirk Eddelbuettel wrote: | > Sorry that this is so frustrating, but this (IMNSHO) all just Windows... | > | > I would try two things: | > | > a) forward slashes (no escaping needed) | > | > b) use ve

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Gabor Grothendieck
On Sat, Mar 2, 2013 at 7:05 PM, Dirk Eddelbuettel wrote: > > On 2 March 2013 at 18:47, Gabor Grothendieck wrote: > | On Sat, Mar 2, 2013 at 10:17 AM, Dirk Eddelbuettel wrote: > | > > | > On 1 March 2013 at 23:03, Gabor Grothendieck wrote: > | > | On Fri, Mar 1, 2013 at 9:50 PM, Dirk Eddelbuettel

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
On 2 March 2013 at 18:47, Gabor Grothendieck wrote: | On Sat, Mar 2, 2013 at 10:17 AM, Dirk Eddelbuettel wrote: | > | > On 1 March 2013 at 23:03, Gabor Grothendieck wrote: | > | On Fri, Mar 1, 2013 at 9:50 PM, Dirk Eddelbuettel wrote: | > | > | > | > On 1 March 2013 at 21:24, Hadley Wickham wrot

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Gabor Grothendieck
On Sat, Mar 2, 2013 at 10:17 AM, Dirk Eddelbuettel wrote: > > On 1 March 2013 at 23:03, Gabor Grothendieck wrote: > | 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

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
On 2 March 2013 at 11:05, JJ Allaire wrote: | Note that the Sys.setenv technique described by Dirk will work for | Rcpp from SVN but not (yet) for the version of Rcpp on CRAN. Ooops. My bad. So that precludes use of sourceCpp(). All other methods involving the R CMD COMPILE', 'R CMD SHLIB' et

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread JJ Allaire
Note that the Sys.setenv technique described by Dirk will work for Rcpp from SVN but not (yet) for the version of Rcpp on CRAN. JJ ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/list

Re: [Rcpp-devel] Regular Expressions

2013-03-02 Thread Dirk Eddelbuettel
On 1 March 2013 at 23:03, Gabor Grothendieck wrote: | 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

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] 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