Re: [Rcpp-devel] Compilation ERROR

2013-03-08 Thread Sedat Sen
It fixed the warning. Thanks! After hours of trying, I could install rstan package and start doing analyses finally;) Best, Sedat On Fri, Mar 8, 2013 at 7:21 AM, Dirk Eddelbuettel wrote: > > On 8 March 2013 at 02:18, Sedat Sen wrote: > | Sorry it was not en error but warning! I could get the s

Re: [Rcpp-devel] Compilation ERROR

2013-03-08 Thread Dirk Eddelbuettel
On 8 March 2013 at 02:18, Sedat Sen wrote: | Sorry it was not en error but warning! I could get the same results as in that | website.  | | > # do something with Rcpp to quickly check that it works | > body <- ' | + NumericVector xx(x); | + return wrap( std::accumulate( xx.begin(), xx.end(), 0.0)

Re: [Rcpp-devel] Compilation ERROR

2013-03-07 Thread Kevin Ushey
By default, g++.exe is installed into /gcc-/bin; and you want to make sure that folder is in your path (not just C:\R\Rtools\bin, so I guess in your case, assuming an up-to-date version of R/Rtools, you want to make sure C:\R\tools\gcc-4.6.3\bin is also in your path). Note that this is done by defa

Re: [Rcpp-devel] Compilation error in Rcpp

2012-11-15 Thread Dirk Eddelbuettel
On 15 November 2012 at 08:40, Karl Millar wrote: | Yes.  I think only fairly recent versions of clang pick up on this though. Cool. Thanks for the feedback. At the top-secret "Rcpp R+D labs" someone is already plotting to get some of the clang goodness into Rcpp and its toolchain. Dirk -- Dir

Re: [Rcpp-devel] Compilation error in Rcpp

2012-11-15 Thread Karl Millar
Yes. I think only fairly recent versions of clang pick up on this though. On Thu, Nov 15, 2012 at 4:34 AM, Dirk Eddelbuettel wrote: > > On 14 November 2012 at 21:57, Karl Millar wrote: > | In the Rcpp 0.10.0, > inst/include/Rcpp/sugar/logical/SingleLogicalResult.h there > | is the code: > | >

Re: [Rcpp-devel] Compilation error in Rcpp

2012-11-15 Thread Dirk Eddelbuettel
On 14 November 2012 at 21:57, Karl Millar wrote: | In the Rcpp 0.10.0, inst/include/Rcpp/sugar/logical/SingleLogicalResult.h there | is the code: | | template | class conversion_to_bool_is_forbidden :  | conversion_to_bool_is_forbidden{ | | Which obviously can't be instantiated. | | Presumabl

[Rcpp-devel] Compilation error in Rcpp

2012-11-14 Thread Karl Millar
In the Rcpp 0.10.0, inst/include/Rcpp/sugar/logical/SingleLogicalResult.h there is the code: template class conversion_to_bool_is_forbidden : conversion_to_bool_is_forbidden{ Which obviously can't be instantiated. Presumably the code should be: template class conversion_to_bool_is_forbidden :

Re: [Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Jelmer Ypma
Dear Douglas, many thanks for your quick reply, that's exactly what I was looking for. Best wishes, Jelmer On Tue, May 8, 2012 at 5:33 PM, Douglas Bates wrote: > Thanks for the report.  It is a problem in the 'as' methods defined > for Eigen objects. > > I will fix that but I think what you are

Re: [Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Douglas Bates
Thanks for the report. It is a problem in the 'as' methods defined for Eigen objects. I will fix that but I think what you are trying to do is more easily accomplished by using a copy constructor in C++, as in the enclosed On Tue, May 8, 2012 at 10:45 AM, Jelmer Ypma wrote: > Hi all, > > I've b

[Rcpp-devel] Compilation error using Rcpp::as

2012-05-08 Thread Jelmer Ypma
Hi all, I've been happily using the RcppEigen package for a couple of projects, but now I'm running into problems converting a matrix from R into an Eigen::MatrixXd. Converting an R matrix to an Eigen::Map works fine, but I would like to (deep)copy the values from R to a C++ Eigen::MatrixXd object