Difference between RInside and Rcpp

前端 未结 1 878
春和景丽
春和景丽 2021-01-26 05:34

I understand RInside allows C++ program to embed R code, while Rcpp enables R code to call C++ functions or library.

Are there other differences and commonalities betwe

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-26 06:00

    Rcpp:

    The Rcpp package provides R functions and a C++ library facilitating the integration of R and C++.

    RInside:

    The RInside package provides a few classes for seamless embedding of R inside of C++ applications by relying on Rcpp.

    So it appears the Rcpp is lower level and facilities the communication between the two languages, not just from R to C++ as you state but communication in both directions. RInside, on the other hand, is higher level library built on top of Rcpp focused on easy embedding of R into C++.

    0 讨论(0)
提交回复
热议问题