Hi, I’m a developer of the R kernel for Jupyter: https://irkernel.github.io/
It works by having a main loop written in R, and waiting for IPC signals in it, which potentially send code… then it executes that code using the “evaluate” package.
We want to identify as interactive for the various packages expecting/working differently with that: https://github.com/IRkernel/IRkernel/issues/236
Sadly R crashes when we run it like here: https://github.com/IRkernel/IRkernel/blob/master/inst/kernelspec/kernel.json#L1
There seems to be a way to run R so that it doesn’t expect input from stdin but still identifies as interactive, but it’s hardcoded to use the R GUI.
Is there (or can you create a) way to run R interactively while the input comes from a custom source?