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
I am subscribing to r-core because I am spending more and more time reading
the R implementation itself, but in the meantime I would love to discuss
the topic of embedding R (or linking against it) with more experienced C
developers and people who've written C or C++ code for R packages.
I have re