Re: [Rcpp-devel] Specifying additional include path in Rcpp package

2013-07-18 Thread Rainer M Krug
Dirk Eddelbuettel writes: > Hi Rainer, > > On 18 July 2013 at 16:51, Rainer M Krug wrote: > | Hi > | [snip: some stuff (28 lines)] > | > | , > | | #!/bin/bash > | | ## Use the R_HOME indirection to support installations of multiple R > version > | | PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rc

Re: [Rcpp-devel] Specifying additional include path in Rcpp package

2013-07-18 Thread Dirk Eddelbuettel
Hi Rainer, On 18 July 2013 at 16:51, Rainer M Krug wrote: | Hi | | I am sure thsi has been answered or is in the manuals, but I just can't | find it - I probably made a stupid mistake. | | But I don't manage to specify additional include paths in a package using Rcpp. | | in my grassRLink.h f

[Rcpp-devel] Specifying additional include path in Rcpp package

2013-07-18 Thread Rainer M Krug
Hi I am sure thsi has been answered or is in the manuals, but I just can't find it - I probably made a stupid mistake. But I don't manage to specify additional include paths in a package using Rcpp. in my grassRLink.h file I have: , | #ifndef _grassRLink_grassRLink_H | #define _grassRLink_g

Re: [Rcpp-devel] is( SEXP )

2013-07-18 Thread Hadley Wickham
> I've just commited some code that will help us identify if a given R object > (a SEXP) can be seen as a given c++ type (e.g. IntegerVector, etc ...) > > Works like this: > > SEXP x ; // a SEXP from somewhere, or an RObject > is( x ) ; > is( x ) ; > is( x ) ; Nice! Combining this with attribute

[Rcpp-devel] failed RcppArmadillo build on R-forge

2013-07-18 Thread Silkworth,David J.
I have been at frustrated by failed builds on my package on R-forge. It seems that the problem is a failed build of RcppArmadillo itself on 13 July. The culprit seems to be an unterminated #ifndef in Module_generated_CppFunction.h:22:0 I don't know why but the R-forge folks let the offending