Re: [Rcpp-devel] Rcpp compile question

2011-03-22 Thread Dirk Eddelbuettel
On 22 March 2011 at 14:15, Henry Bee wrote: | Hi Douglas, | | I assume I do not need to do anything with R after installing RTools? | I reinstalled RTools and restarted R and got the same errors. Please see Appendix D of the "R Installation and Administration" manual. Rcpp is no different than o

Re: [Rcpp-devel] Rcpp compile question

2011-03-22 Thread Henry Bee
Hi Douglas, I assume I do not need to do anything with R after installing RTools? I reinstalled RTools and restarted R and got the same errors. Henry On Tue, Mar 22, 2011 at 12:24 PM, Douglas Bates wrote: > On Tue, Mar 22, 2011 at 2:16 PM, Henry Bee wrote: > > Hi Christian, > > Thanks for the

Re: [Rcpp-devel] Rcpp compile question

2011-03-22 Thread Douglas Bates
On Tue, Mar 22, 2011 at 2:16 PM, Henry Bee wrote: > Hi Christian, > Thanks for the source file. Below are the full results as you requested. > It's giving the same error as before. Is 64-bit R supported? 64-bit R is supported. Has it already been established that you have the Rtools (compilers,

Re: [Rcpp-devel] Rcpp compile question

2011-03-22 Thread Henry Bee
Hi Christian, Thanks for the source file. Below are the full results as you requested. It's giving the same error as before. Is 64-bit R supported? Henry > source('tmp.R', verbose = TRUE) 'envir' chosen: encoding = "native.enc" chosen --> parsed 3 expressions; now eval(.)ing them: eval(expr

Re: [Rcpp-devel] Rcpp compile question

2011-03-20 Thread Henry Bee
Dirk, thanks for your quick response. Here's the command: > src <- ' > + Rcpp::NumericVector xa(a); > + Rcpp::NumericVector xb(b); > + int n_xa = xa.size(), n_xb = xb.size(); > + > + Rcpp::NumericVector xab(n_xa + n_xb - 1); > + for (int i = 0; i < n_xa; i++) > + for (int j = 0; j < n_xb; j++) > +

Re: [Rcpp-devel] Rcpp compile question

2011-03-20 Thread Dirk Eddelbuettel
Hi Henry, On 20 March 2011 at 20:11, Henry Bee wrote: | Hi Dirk, | | I've been developing with R for the past year and came across your wonderful | presentation slides on Rcpp a few months ago. I am now turning to your Rcpp | package to translate the slowest portion of my code to C/C++.  Great,

[Rcpp-devel] Rcpp compile question

2011-03-20 Thread Henry Bee
Hi Dirk, I've been developing with R for the past year and came across your wonderful presentation slides on Rcpp a few months ago. I am now turning to your Rcpp package to translate the slowest portion of my code to C/C++. I am testing the first example provided on page 6 in your Rcpp-introducti