Does an R compiler to C/C++ exist?

后端 未结 5 2300
谎友^
谎友^ 2020-12-01 00:18

I\'m wondering about the best way to deploy R. Matlab has the \"matlab compiler\" (MCR). There has been discussion about something similar in the past for R that would com

5条回答
  •  無奈伤痛
    2020-12-01 00:55

    I haven't used Garvin's package and don't know what is possible along those lines. However:

    Typically people just write computationally intensive functions directly in C/C++/Fortran, after profiling to find the bottlenecks. See the RCpp interface or Calling C functions from R using .C and .Call for examples. The Scythe Statistical Library is also very nice for R users since the syntax/function names are similar.

提交回复
热议问题