Re: [Rcpp-devel] Compile errors when including Rcpp 0.11.0

2014-03-01 Thread Dirk Eddelbuettel
On 1 March 2014 at 20:23, Jonathon Love wrote: | It didn't work, I get the same error. | | I installed from github using: | | install_github("RcppCore/Rcpp") | | this updated my Rcpp to version 0.11.0.2 | | but the problem persists. | | Any further suggestions? Not really. A minimal reproduci

Re: [Rcpp-devel] Compile errors when including Rcpp 0.11.0

2014-03-01 Thread Jonathon Love
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Dirk, Thanks for your speedy response. > That sounds suspiciously like something Kevin fixed shortly after > the release. > > Could you try the version in the GitHub repo at > > https://github.com/RcppCore/Rcpp > > and see if that works? It

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-03-01 Thread Dirk Eddelbuettel
On 1 March 2014 at 16:12, Matt D. wrote: | On 2/27/2014 21:02, Dirk Eddelbuettel wrote: | > | > Last time I neeed a 1-d solver, I just quicky coded one up, based on another | > implementation of Brent's method. That was a one-off and at work, but it | > really isn't that involved. | | For 1-D so

Re: [Rcpp-devel] Compile errors when including Rcpp 0.11

2014-03-01 Thread Dirk Eddelbuettel
Hi Jonathon, On 1 March 2014 at 17:43, Jonathon Love wrote: | We've been using Rcpp in a project for some time now, and have found | it invaluable. However, we've just updated to 0.11 and when we try and [ Releases have standard triple-version names, so it is 0.11.0 right now. ] | compile our p

[Rcpp-devel] Compile errors when including Rcpp 0.11

2014-03-01 Thread Jonathon Love
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, We've been using Rcpp in a project for some time now, and have found it invaluable. However, we've just updated to 0.11 and when we try and compile our project including the Rcpp header files, we get errors (seems to work fine under clang++ on O

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-03-01 Thread Matt D.
On 2/27/2014 21:02, Dirk Eddelbuettel wrote: Last time I neeed a 1-d solver, I just quicky coded one up, based on another implementation of Brent's method. That was a one-off and at work, but it really isn't that involved. For 1-D solvers (gradient-based & derivative-free root-finding, as wel

Re: [Rcpp-devel] Rcpp attributes, default values for enums

2014-03-01 Thread Gábor Csárdi
On Sat, Mar 1, 2014 at 9:30 AM, JJ Allaire wrote: > Gabor, > > The issue is that we don't know how to translate C++ enums into R (since R > has no enum construct). Since R typically uses a character vector for > enumerated values, another way to approach this would be use a std::string > and then

Re: [Rcpp-devel] Rcpp attributes, default values for enums

2014-03-01 Thread JJ Allaire
Gabor, The issue is that we don't know how to translate C++ enums into R (since R has no enum construct). Since R typically uses a character vector for enumerated values, another way to approach this would be use a std::string and then just convert it to enum within the C++ implementation. J.J.