-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
organize R code in R package #81
base: main
Are you sure you want to change the base?
Conversation
This reverts commit fb341b1.
Hi @romainfrancois ! I've been testing I think if we had a separate Thanks! cc: @anutosh491 in case you're interested :) |
Hi! I made some changes regarding |
I would be interested in resurecting this work on having a clean split! |
closes #32
This puts the support R code into an R package called
hera
instead of having volatile R code that issource()
from the directory. The plan is forhera
to be tested as a standalone package with typical R code tools, i.e. testthat ...So currently, the kernel
void interpreter::configure_impl()
will try to loadhera
:And then e.g.
execute_request_impl()
will call the R functionexecute
that lives inhera
:SEXP result = invoke_hera_fn("execute", code_, execution_counter_, silent_);
Then the R code might need to call the routines made available by
xeusr
, e.g.This is all similar to what was, but having it in a proper package will help.
For testing purposes, i.e. when R is not embedded, and therefore those routines are not available, we'll have to replace them with mockups.
An issue I have with this, is that e need to make sure that the 📦 is installed, so I probably need to investigate that.