Re: [Rcpp-devel] RcppMLPACK ?

2014-06-11 Thread Dirk Eddelbuettel
On 10 June 2014 at 23:34, Qiang Kou wrote: | Hi, guys, | | I have a little more time to work on the RcppMLPACK package during this summer. | | I set up a repo on github [1] and it follows the structure of RcppArmadillo. I | just test a simple kmeans function and it seems that it works.  Nice w

Re: [Rcpp-devel] RcppMLPACK ?

2014-06-11 Thread Qiang Kou
Thanks for the opinions! On Wed, Jun 11, 2014 at 7:38 AM, Dirk Eddelbuettel wrote: > And smart how you just added the little bit from Boost > we don't have in BH (program_options). > As far as I know all parts in BH package are headers-only, and "program_options" is required by MLPACK to handle

Re: [Rcpp-devel] RcppMLPACK ?

2014-06-11 Thread Dirk Eddelbuettel
On 11 June 2014 at 08:50, Qiang Kou wrote: | Thanks for the opinions! As they say, "talk is cheap" so I dispense it freely :) | On Wed, Jun 11, 2014 at 7:38 AM, Dirk Eddelbuettel wrote: | And smart how you just added the little bit from Boost | we don't have in BH (program_options). |

[Rcpp-devel] Using spatstat in Rcpp

2014-06-11 Thread mohammad ghorbani
Hi there, I would like to call discpartarea() and as.owin() functions of spatstat from Rcpp. In a simple example consider the following C++ code in which I'm trying to access the above  functions: #include using namespace Rcpp; // [[Rcpp::export]] NumericVector IndepSelfCortCpp( NumericMatri

Re: [Rcpp-devel] Using spatstat in Rcpp

2014-06-11 Thread Romain François
Hello, You seem to be confusing R namespaces and C++ namespaces and assuming you can call an R function as if it belonged to a C++ namespace. R functions and c++ functions are different things. You can do something like: // get the spatstat environment Environment spatstat( "package:spatsta

Re: [Rcpp-devel] RcppMLPACK ?

2014-06-11 Thread Qiang Kou
Understood! I will contact Ryan and modify the package in the weekend. Best, KK On Wed, Jun 11, 2014 at 9:28 AM, Dirk Eddelbuettel wrote: > > On 11 June 2014 at 08:50, Qiang Kou wrote: > | Thanks for the opinions! > > As they say, "talk is cheap" so I dispense it freely :) > > | On Wed, Jun

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-11 Thread Matteo Fasiolo
Hi Dirk, after realizing that the only C++11 feature I was using was I decided to switch to boost::normal_distribution. In particular I now link to BH, but I don't use the boost::normal_distribution from there, but the one in this commit: http://lists.boost.org/boost-commit/2012/10/43158.php w

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-11 Thread Dirk Eddelbuettel
Hi Matteo, On 11 June 2014 at 23:29, Matteo Fasiolo wrote: |  after realizing that the only C++11 feature I was using was I decided | to switch | to boost::normal_distribution. In particular I now link to BH, but I don't use | the boost::normal_distribution | from there, but the one in this com