I built a reactive terminal UI framework for R

Hi everyone,

I've been working on an R package called termr.

It includes:

- widgets, layouts, events and reactive state

- virtualized data tables with sorting, filtering and search

- lazy table sources and DBI/SQLite workflows

- background R workers with progress and cancellation

- dialogs, tabs, trees, text editing, command palette

- headless testing with testthat

- Windows, Linux, macOS and interactive SSH support

The screenshot is a real order explorer running on 20,000 rows of synthetic data.

A tiny app looks like this:

library(termr)

app(

vertical(

label("Hello from R"),

data_table(mtcars),

button("Quit", on_press = function(event, app) app$exit())

)

) |> run()

The project is MIT licensed and currently at v1.0.0-rc1.

I'd really like feedback from R users.

Also, you can use AI if you want to try coding with this library.

GitHub:

Thank you for sharing, @41929424! It's certainly the age of the TUI :slight_smile: