Running compiled C++ code with Rcpp

前端 未结 3 574
清歌不尽
清歌不尽 2021-02-06 00:53

I have been working my way through Dirk Eddelbuettel\'s Rcpp tutorial here:

http://www.rinfinance.com/agenda/

I have learned how to save a C++ file

3条回答
  •  温柔的废话
    2021-02-06 01:09

    If you want to get some entity you can keep, what you are looking for is an R package. There are many resources online to learn how to make them (e.g. Hadley's slides).

    We have Rcpp.package.skeleton you might find useful.

    So, the function is compiled once when the package is installed, and then you just use it.

提交回复
热议问题