RcppCore / rcpp-gallery

Source code for the Rcpp Gallery website
http://gallery.rcpp.org
Other
69 stars 71 forks source link

Add post on RcppArrayFire #109

Closed rstub closed 6 years ago

rstub commented 6 years ago

c.f. #108 I have opted to include the benchmark results directly instead of having them produced on the fly, mainly because I did not want to include the sources for the other functions.

eddelbuettel commented 6 years ago

That is a little against the spirit of everthing else we have done. Could you try to have them self-contained with only dependencies on CRAN packages (or packages focussed in the post, here RcppArrayFire) ?

rstub commented 6 years ago

Ok, I will make it self-contained. We will need an extra iteration then since it is difficult to write about benchmarks without knowing the results :-)

eddelbuettel commented 6 years ago

An additional level of difficulty is of course that the results will then come from my machine ...

I hope I won't later regret tieing myself to having this installed.

rstub commented 6 years ago

Maybe we should consider the "mock" option then. Do you have any "best practices" for that? I could imagine to include two flags into the Rmd file: Whether to compile and run ArrayFire code and whether to use precomputed results. Of course, if one does not use ArrayFire code one has to use the precomputed results.

eddelbuettel commented 6 years ago

I think it's ok for it to fail if not all requirements are installed provided the requirements are open source and could be installed.