[Rcpp-devel] Embedding RInside in C++ project

2015-07-23 Thread Ulf Mertens
Dear list, I am working on a project in C++ where I have to use Bayesian Statistics quite extensively. I coded my own Metropolis Hasting Sampler but since it is not working that well, I wanted to call rstan from within C++ via RInside. I already wrote the appropriate RInside/Rcpp code but I don't

[Rcpp-devel] Readin cvs files in Rcpp package

2015-07-23 Thread Hmamouche Youssef
Hello I'm trying te read a csv file in Rcpp package, with C++ function: ifstream ifs("FileName.csv") I'm using Rcpp modules , and the code work with Qt creator (purly in C++), but Rcpp cant' find the csv file in his stuctur. I remark also that the package work well without importing csv file, s

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-23 Thread Dirk Eddelbuettel
Hi Ulf, On 23 July 2015 at 15:53, Ulf Mertens wrote: | I am working on a project in C++ where I have to use Bayesian Statistics quite | extensively. I coded my own Metropolis Hasting Sampler but since it is not | working that well, I wanted to call rstan from within C++ via RInside. I | already w

Re: [Rcpp-devel] Readin cvs files in Rcpp package

2015-07-23 Thread Dirk Eddelbuettel
Youssef, On 23 July 2015 at 16:07, Hmamouche Youssef wrote: | I'm trying te read a csv file in Rcpp package, with C++ function: | | ifstream ifs("FileName.csv") | | I'm using Rcpp modules , and the code work with Qt creator (purly in C++), but | Rcpp cant' find the csv file in his stuctur. | |

Re: [Rcpp-devel] Embedding RInside in C++ project

2015-07-23 Thread Ulf Mertens
Hi, thanks for your mail. I don't have to use cmake for my project. It's totally fine to use plain Makefiles for me. Sure, I can release this. But first, I want to optimize the code a bit. For instance, I am working with Eigen matrices and vectors in my c++ program but I don't know how to conver