mirai: Minimalist Async Evaluation Framework for R

Evaluates R expressions asynchronously and in parallel, locally or distributed across networks. An official parallel cluster type for R. Built on 'nanonext' and 'NNG', its non-polling, event-driven architecture scales from a laptop to thousands of processes across high-performance computing clusters and cloud platforms. Features FIFO scheduling with task cancellation, promises for reactive programming, 'OpenTelemetry' distributed tracing, and custom serialization for cross-language data types.

Version: 2.6.0
Depends: R (≥ 3.6)
Imports: nanonext (≥ 1.8.0)
Suggests: cli, litedown, otel, otelsdk, secretbase
Enhances: parallel, promises
Published: 2026-02-13
DOI: 10.32614/CRAN.package.mirai
Author: Charlie Gao ORCID iD [aut, cre], Joe Cheng [ctb], Posit Software, PBC ROR ID [cph, fnd], Hibiki AI Limited [cph]
Maintainer: Charlie Gao <charlie.gao at posit.co>
BugReports: https://github.com/r-lib/mirai/issues
License: MIT + file LICENSE
URL: https://mirai.r-lib.org, https://github.com/r-lib/mirai
NeedsCompilation: no
Materials: README, NEWS
In views: HighPerformanceComputing
CRAN checks: mirai results

Documentation:

Reference manual: mirai.html , mirai.pdf
Vignettes: mirai - Quick Reference (source)
mirai - Reference Manual (source)
mirai - Promises (Shiny and Plumber) (source)
mirai - Serialization (Arrow, ADBC, polars, torch) (source)
mirai - Communications Backend for R (source)
mirai - OpenTelemetry (source)
mirai - For Package Authors (source)
mirai - Community FAQs (source)

Downloads:

Package source: mirai_2.6.0.tar.gz
Windows binaries: r-devel: mirai_2.6.0.zip, r-release: mirai_2.5.3.zip, r-oldrel: mirai_2.5.3.zip
macOS binaries: r-release (arm64): mirai_2.6.0.tgz, r-oldrel (arm64): mirai_2.6.0.tgz, r-release (x86_64): mirai_2.5.3.tgz, r-oldrel (x86_64): mirai_2.5.3.tgz
Old sources: mirai archive

Reverse dependencies:

Reverse imports: bakerrr, bregr, CBTF, chopin, crew, dRiftDM, flownet, future.mirai, GeomArchetypal, gratia, invivoPKfit, kinesis, mlr3, pliman, ragnar, reqres, rush, slideimp, synthReturn, worldmet, xplainfi
Reverse suggests: bbotk, brms, evsim, filibustr, important, kuzco, logger, mlr3fselect, mlr3hyperband, mlr3learners, mlr3mbo, mlr3misc, mlr3tuning, opusreader2, plumber2, promises, purrr, ravepipeline, routr, shiny, shinyOAuth, shinyscholar, teal, tune

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mirai to link to this page.