Bug 17134 - Allow interaction via main loop
Summary: Allow interaction via main loop
Alias: None
Product: R
Classification: Unclassified
Component: Wishlist (show other bugs)
Version: R-devel (trunk)
Hardware: All All
: P5 enhancement
Assignee: R-core
Depends on:
Reported: 2016-08-20 09:19 UTC by Philipp Angerer
Modified: 2016-08-20 09:19 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Angerer 2016-08-20 09:19:23 UTC
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?