[Rcpp-devel] Rcpp C++ code debug / Calling Rcpp in a C++ environment

2014-07-09 Thread Jing Peng
Hi All, I am trying to debug the C++ code of an R package in a pure C++ environment. That way, I can put aside the interaction between R and C++. However, I found I was not able to setup Rcpp properly after two days of effort. I followed the following instructions for Eclipse and Netbeans, respec

Re: [Rcpp-devel] Rcpp function variable which is given as argument

2014-07-09 Thread Dirk Eddelbuettel
On 9 July 2014 at 12:21, Mario Deng wrote: | Hello everyone, | | I am observing a, to me, strange behaviour. Rcpp seems to modify my variable, which is given as argument. Here is my code: | | In R am am running: | | Rcpp::sourceCpp("~/.../VectorList/VectorList.cpp") | foo=matrix(runif(52), nco

[Rcpp-devel] Rcpp function variable which is given as argument

2014-07-09 Thread Mario Deng
Hello everyone, I am observing a, to me, strange behaviour. Rcpp seems to modify my variable, which is given as argument. Here is my code: In R am am running: Rcpp::sourceCpp("~/.../VectorList/VectorList.cpp") foo=matrix(runif(52), ncol=4) colnames(foo)=paste("X",1:ncol(foo),sep="") rownames(fo