Re: [Rd] Embedding R in other applications as a scripting language

2024-10-13 Thread Dirk Eddelbuettel
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

Re: [Rd] R CMD check and CRAN's rust policy

2024-10-13 Thread Tomas Kalibera
On 10/13/24 19:30, Josiah Parry wrote: Hi all, I'm new to contributing to r-devel. The trunk of r-devel right now includes a `check_rust()` function for adherence to CRAN's evolving rust policy (see commit https://github.com/r-devel/r-svn/commit/6114d4126434c056b476cbc5db2657536c153d9a ). As it

Re: [Rd] Embedding R in other applications as a scripting language

2024-10-13 Thread Simon Urbanek
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

[Rd] R CMD check and CRAN's rust policy

2024-10-13 Thread Josiah Parry
Hi all, I'm new to contributing to r-devel. The trunk of r-devel right now includes a `check_rust()` function for adherence to CRAN's evolving rust policy (see commit https://github.com/r-devel/r-svn/commit/6114d4126434c056b476cbc5db2657536c153d9a ). As it stands R 4.4.2 will codify CRAN policy o

[Rd] Embedding R in other applications as a scripting language

2024-10-13 Thread Bryce Carson
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