Hi Bryce,
On 14 October 2024 at 09:13, Simon Urbanek wrote:
| If you are willing to use C++ then RInside is a nice package that wraps the R
API in C++ classes for easier use: https://github.com/eddelbuettel/rinside
simplifying it quite a bit.
Thanks for mention, Simon! And yes, embedding R is
Bryce,
embedding R varies from easy to very complex depending on what you want to do
with it. If all you want is to evaluate R commands and get the result values
then it is easy: you just initialize R with Rf_initialize_R() and use
R_tryEval() to evaluate what you need (making sure you stay on