Hi All,
RStudio offers a fantastic feature to help users build R package via "New Project -- New Directory". I have used it a lot to build R package with or without RcppArmadillo. But recently, I would like to build an R package with both RcppArmadillo and RcppParallel. I tried to added something on the basis of the "RcppArmadillo supporting" package to support RcppParallel but failed. Another option is to start from "RcppParallel supporting" package but also did not work. Could any one provide a link or an example to help me out? Thanks a lot in advance!
(Following Hong's code, I first create an R package via "New Project -- New Directory -- R Package using RcppParallel", and then add #include <RcppArmadillo.h> in .cpp file and add LinkingTo: Rcpp, RcppParallel, RcppArmadillo to DESCRIPTION)
Thanks,
Wenjian