mirai: Minimalist Async Evaluation Framework for R

Designed for simplicity, a 'mirai' evaluates an R expression asynchronously in a parallel process, locally or distributed over the network. Modern networking and concurrency, built on 'nanonext' and 'NNG' (Nanomsg Next Gen), ensures reliable and efficient scheduling over fast inter-process communications or TCP/IP secured by TLS. Distributed computing can launch remote resources via SSH or cluster managers. A queued architecture readily handles more tasks than available processes, requiring no storage on the file system. Innovative features include event-driven promises, asynchronous parallel map, and automatic serialization of otherwise non-exportable reference objects.

Package details

AuthorCharlie Gao [aut, cre] (ORCID: <https://orcid.org/0000-0002-0750-061X>), Joe Cheng [ctb], Posit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>), Hibiki AI Limited [cph]
MaintainerCharlie Gao <charlie.gao@posit.co>
LicenseMIT + file LICENSE
Version2.3.0
URL https://mirai.r-lib.org https://github.com/r-lib/mirai
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("mirai")

Try the mirai package in your browser

Any scripts or data that you put into this service are public.

mirai documentation built on June 8, 2025, 12:53 p.m.