gjwgit / rattleng

The New Generation R Analytics Desktop App
GNU General Public License v3.0
20 stars 8 forks source link

CONSOLE: Embed terminal inside the Console tab for R interaction #26

Closed gjwgit closed 11 months ago

gjwgit commented 1 year ago

Description

https://pub.dev/packages/xterm

Add an xterm into the TERM tab, and send commands to start up R and then to send R commands to the terminal and to retrieve the output from the terminal.

The xterm is running under the Console tab but because of the way flutter rebuilds widgets, each time the tab is visited a new instance of xterm is created. Instead there should be a single instance, and each time the tab is visited it should that one instance. Then send strings to the xterm to have then run in R and read the output from the xterm to parse and load into the app.

Why

So that a user can interact with R within the app and can also see the commands and output there as they are run.

Closing Criteria

It will look something like:

image

gjwgit commented 1 year ago

From the repository see the example app, but in main.dart replace the various shells with just R!

String get shell {
    return 'R';
}
mukundsrinivasb commented 1 year ago

Is this a good issue to take up after the previous one ? Also , I am unable to find the main.dart file on the root directory. I made a new fork and clone after the previous issue

gjwgit commented 1 year ago

Yes, this would be a good one to work on. It is rather core to getting the communications between flutter and R working. Currently I am using an R process to send commands to R, but not yet getting results from R (see #36). It would however be nice to have this embedded console and to demonstrate sending commands to it and obtaining the output from it into flutter.

Also need to maintain its state #27.

gjwgit commented 11 months ago

WIP - all but extracting the data is functional. Should not be too hard to extract the data.

gjwgit commented 11 months ago

Completed.