On 6 November 2020 at 22:45, Jiefei Wang wrote: | I'm not sure why publishing the C++ source along with your package is not | feasible for you. If it is because of something besides technical | difficulty, you might need to consider an alternative method. Since the R | package must be portable, your secret functions must also be portable. You | can implement your functions on some portable platforms(e.g. JAVA) and | integrate it into your package. The road would not be easy, so I strongly | recommend you to try every other possibility before doing so.
This is getting off-topic fast: even C code can be portable (one binary per platform) and that scheme is allowed on CRAN and used by a few packages. It just can't be C++ for reasons that have to do with the language and compiler. So for 'simple' Rcpp code, just ship the source. And as R, CRAN, Rcpp, ... are all open source that is the right play anyway. Dirk -- https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel