Inline Asynchronous Generator Results into Documents

Given a 'coro' asynchronous generator instance that produces text, write that text into a document selection in 'RStudio' and 'Positron'. This is particularly helpful for streaming large language model responses into the user's editor.


streamy streamy website

Lifecycle:experimental CRANstatus R-CMD-check

Given a coro generator instance, streamy inlines text into a document selection in RStudio and Positron. This is particularly helpful for streaming LLM responses into documents.

This package powers gander, chores, and ensure.

Installation

You can install streamy with the following R code:

install.packages("streamy")

Install the development version of streamy like so:

pak::pak("simonpcouch/streamy")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("streamy")

0.2.1 by Simon Couch, 10 months ago


https://github.com/simonpcouch/streamy, https://simonpcouch.github.io/streamy/


Report a bug at https://github.com/simonpcouch/streamy/issues


Browse source code at https://github.com/cran/streamy


Authors: Simon Couch [aut, cre] , Posit Software , PBC [cph, fnd]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, coro, rlang, rstudioapi, withr

Suggests ellmer, knitr, rmarkdown, testthat


Imported by chores, gander.


See at CRAN