Vinh, Please have a look at RcppArmadillo 0.2.2 which should helpfully be easier to use in the cases you tried, ie outside of a package. A quick example is on my blog at http://dirk.eddelbuettel.com/blog/
Regards, Dirk
4 messages · Vinh Nguyen, Dirk Eddelbuettel
Vinh, Please have a look at RcppArmadillo 0.2.2 which should helpfully be easier to use in the cases you tried, ie outside of a package. A quick example is on my blog at http://dirk.eddelbuettel.com/blog/
Regards, Dirk
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.
Thanks for an awesome package! I can go into C++ and do crazy loops
with near ease as if I was in R.
Vinh
Vinh, Please have a look at RcppArmadillo 0.2.2 which should helpfully be easier to use in the cases you tried, ie outside of a package. ?A quick example is on my blog at http://dirk.eddelbuettel.com/blog/ -- ?Regards, Dirk
| 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?
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?
Sorry for the confusion. There is no issue -- I was confusing myself when I saw RcppArmadillo:::CxxFlags(); thought it through now. Also, I didn't realize there was an RcppArmadillo.package.skeleton().
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