A lightweight data viewer with no package dependencies. It sends data frames, lists, and other R objects, as well as 'Apache Arrow' data, over a local connection to an external viewer application, and answers the viewer's requests for sorted, filtered, and paged rows. Arrow data is read through the Arrow C stream interface and sent in the Arrow inter-process communication stream format without conversion to R vectors.
This directory contains the source code for the jdv R package, a lightweight (C-based, zero dependency) data viewer for R.
For the viewer setup, examples, and everything else, please consult the main project README: https://github.com/eitsupi/jdv
An embedding host can inspect a selected value through a handle and then register the captured value as a regular view:
root <- jdv::jdv_handle(list(mtcars))
child <- jdv::jdv_handle_open(root, list(list(type = "index", index = 1L)))
view <- jdv::jdv_handle_register(child)
jdv::jdv_handle_close(root)
jdv::jdv_close(view$id)
The registered view keeps its own captured value and remains open after the handle closes.