Overview

Corral is a data science IDE for R and Python, both first-class, with R first. It lives in your terminal. It gives you what you would otherwise open a desktop IDE for (a script you run piece by piece, a live console, your variables, tables and plots) next to your AI agents, and it opens in about 400 milliseconds.

What you get

R and Python, both first-class

Both languages get the whole workbench: the editor with completion and formatting (Air for R, Ruff for Python), the console, the variables pane, View(), plots in Mirador and agents running code in your session. R comes first: it is the default console, and its language server is Ark's, which knows your live objects.

Projects often mix the two, so there is no language to choose up front. Running a .py file (or ctrl+b y) brings the Python console into the console spot; the one you are not using waits in a hidden tab and keeps its state.

How it is built

Corral is one small program, corral, written in Rust with no dependencies. It talks to the pieces that do the heavy lifting, most of them written in Rust as well:

PieceWhat it does here
herdr TUIThe terminal workspace: herdr's terminal version, not the Herdr App. Every console lives in a herdr pane, so closing the window loses nothing.
ArkThe R kernel from Positron: the console and the language server, which knows your live objects.
FreshThe script editor, with a Corral plugin for running code and keeping the draft.
MiradorCorral's viewer in the browser, served by the corral binary: your plots, and tables when you send them there.
DuckDBQueries the tables you open with View(), one page at a time.
uv, ty, RuffPython: the console's environment, completion and diagnostics.

The only parts that are not Rust run inside your own sessions: a small R file that R loads, a Python module that IPython loads, and the editor plugin. Architecture has the diagrams: the layers, what runs where, and how code, tables and plots travel.

When Corral acts

Corral stays out of the way of everything you already have:

New here? Install Corral, then follow the quick start: it takes about two minutes.