Re: [Rcpp-devel] error while calling function in loop

2011-03-28 Thread nandan amar
nside R(argc, argv); > Rptr=&R; > > I hope this helps, > > Sean > > > > On 3/26/11 10:18 AM, "Dirk Eddelbuettel" wrote: > > > > > On 26 March 2011 at 19:06, nandan amar wrote: > > | Ohh Then i sud select reply to all > > | > >

Re: [Rcpp-devel] error while calling function in loop

2011-03-27 Thread nandan amar
Thanks Dirk, It worked when I pass RInside variable by reference. Thanks for the link, i am learning these things. On 26 March 2011 19:48, Dirk Eddelbuettel wrote: > > On 26 March 2011 at 19:06, nandan amar wrote: > | Ohh Then i sud select reply to all > | > | Thanks Dirk, &g

Re: [Rcpp-devel] error while calling function in loop

2011-03-26 Thread nandan amar
Ohh Then i sud select reply to all Thanks Dirk, But RInside R(argc, argv) is not a variable . How can I declare it globally or share its instance. If it is not related to R/Rcpp please leave some related pointer. regards, On 26 March 2011 18:38, Dirk Eddelbuettel wrote: > > Reply on the damn li

[Rcpp-devel] error while calling function in loop

2011-03-26 Thread nandan amar
I have two version of following code , calling the function copy() in loop gives error. I could not figure out why is it so? --- #include #include #include #include using namespa

[Rcpp-devel] error while incompatible types in assignment

2011-03-23 Thread nandan amar
Hello, I tried following code for copying data from an R array to C++ array variable -- #include #include #include #include int main(int argc, char *argv[]) { RInside R(argc, argv); float sum[50];//int sum[50]; R.

Re: [Rcpp-devel] using RApi inC/C++

2011-03-21 Thread nandan amar
Thanks a lot. There was a mistake while configuration. Now corrected. On 21 March 2011 02:46, Dirk Eddelbuettel wrote: > > On 21 March 2011 at 00:59, nandan amar wrote: > | I was searching for SVN source link for rinside > | I could only get tar.gz from > | http://cran.r-project.o

Re: [Rcpp-devel] using RApi inC/C++

2011-03-20 Thread nandan amar
iled and installed R-2.12.2 as given in INSTALL where am I going wrong. Pls suggest regards. On 18 March 2011 20:09, Dirk Eddelbuettel wrote: > > On 18 March 2011 at 19:39, nandan amar wrote: > | Dear All, > | I am trying to use Some R api in c code. > | To start with I copi

[Rcpp-devel] using RApi inC/C++

2011-03-18 Thread nandan amar
Dear All, I am trying to use Some R api in c code. To start with I copied following code and try to run as a:~/Desktop/rcpp$ g++ file.cpp i got following error r.cpp:1: fatal error: R.h: No such file or directory compilation terminated. How should I compile the code. file.cpp