Re: [Rcpp-devel] RcppArmadillo and Rdefines

2015-02-25 Thread Charles Determan Jr
William, To close this point on the use of Rdefines.h on the list it was my oversight to include all the R header files. I have now removed them. I initially only retained those headers as the initial package contained them. I was unaware that Rcpp includes the necessary components and I can us

Re: [Rcpp-devel] RcppArmadillo and Rdefines

2015-02-25 Thread William Dunlap
Why do you include "Rdefines.h" in your Rcpp code? It contains errors (e.g., it leaves the initial Rf_ off of the length function). Also, in my opinion, it is obsolete, especially for Rcpp code, since it is for writing code that works in R and S (including S+) and Rcpp will never work in S+. Bil

Re: [Rcpp-devel] RcppArmadillo and Rdefines

2015-02-25 Thread Dirk Eddelbuettel
On 25 February 2015 at 09:26, Charles Determan Jr wrote: | I have finally solved the problem.  After coming across another posting http:// | r.789695.n4.nabble.com/rtools-fstream-error-td4702713.html I discovered the | problem.  I needed to include #define R_NO_REMAP at the start of my file and |

Re: [Rcpp-devel] RcppArmadillo and Rdefines

2015-02-25 Thread Charles Determan Jr
I have finally solved the problem. After coming across another posting http://r.789695.n4.nabble.com/rtools-fstream-error-td4702713.html I discovered the problem. I needed to include #define R_NO_REMAP at the start of my file and then append Rf_ to any function I use from Rdefines.h. The package

Re: [Rcpp-devel] RcppArmadillo and Rdefines

2015-02-25 Thread Charles Determan Jr
My apologies, I should have just did this from the start. I thought it may be something simple. I create a git repo to access the stripped down package (just the first cpp function and a simple R function). If you clone it with: git clone https://github.com/cdeterman/test.git And try to build