Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-31 Thread Sunny Srivastava
Thank you Christian! Yes, I am doing exactly that. From previous e-mail archives, I have discovered that this is the advice that everyone gives. As, I am on GNU/Linux, it seems (not sure) that it would be somewhat easier than it is on Windows. Best Regards, S. On Mon, Jan 31, 2011 at 7:22 PM, C

Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-31 Thread Christian Gunning
> 2. I have a MCMC simulation (say: foo) which uses several functions (say: > fun1, fun2). These functions (fun1, fun2) are themselves computation > intensive and I used Rcpp to speed them. Until now I do something like this: > > In R file: > > foo <- function (...){ > >    src1 <- paste(readLines(

Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-30 Thread Sunny Srivastava
Thanks again! On Sun, Jan 30, 2011 at 4:16 PM, Dirk Eddelbuettel wrote: > > Howdy, > > Thanks for posting here, and the kind words below. > > On 30 January 2011 at 15:49, Sunny Srivastava wrote: > | Dear Rcpp-List: > | > | I have been working on speeding my R code. A while ago, I realized that >

Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-30 Thread Dirk Eddelbuettel
Howdy, Thanks for posting here, and the kind words below. On 30 January 2011 at 15:49, Sunny Srivastava wrote: | Dear Rcpp-List: | | I have been working on speeding my R code. A while ago, I realized that no | further vectorization would help and interacting R with C/C++/.. was absolutely | ne

[Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-30 Thread Sunny Srivastava
Dear Rcpp-List: I have been working on speeding my R code. A while ago, I realized that no further vectorization would help and interacting R with C/C++/.. was absolutely necessary. I don't program in C/C++ extensively, so the transition was a difficult process. I tried to use the R API but the er