On 10 June 2010 at 10:35, Vinh Nguyen wrote:
| Thanks Dirk.  I've been using the package skeleton method, and added
| PKG_CXXFLAGS = $(shell $(R_HOME)/bin/Rscript -e "Rcpp:::CxxFlags()" )
| $(shell Rscript -e "cat( '-I',
|  system.file('include', package = 'RcppArmadillo'), sep = '' )" )
| 
| into the Makevars file per Romain's suggestion.
| RcppArmadillo:::CxxFlags() is going to help.
| 
| Maybe I'm not seeing this, but will you guys implement the above into
| Rcpp.package.skeleton()?  I don't think it is currently implemented
| (correct me if I'm wrong).  Once that's available developing/debugging
| code the R CMD SHLIB is quite easy once the Makevars file is
| generated.

I do not understand your question.  Can you try to restate it more carefully?

>From what I gather:

  -- you care about the Rcpp and Armadillo intersection, ie RcppArmadillo

  -- you had rightly obsevered that (up until and including RcppArmadillo 0.2.1)
     one could use RcppArmadillo with inline (as inline would pull Rcpp.h 
     leading it to be included before other headers)

  -- we pointed you to alternative methods, notably using a package

  -- you still seem to using some mashup of methods; Romain and I don't so
     you to tell us more clearly a) what you do and b) what doesn't work

  -- as far as I can tell RcppArmadillo 0.2.2 should help you, your post
     does in no way indicate whether you looked at it

  -- Rcpp.package.skeleton() does not know and will not know about
     RcppArmadillo; it is higher the foodchain
 
  -- Which is why RcppArmadillo has its own skeleton generator.

| Thanks for an awesome package!  I can go into C++ and do crazy loops
| with near ease as if I was in R.

Cool. That is one of the goals. Glad it helps you.

-- 
  Regards, Dirk
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to