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', ensures reliable scheduling over fast inter-process communications or TCP/IP secured by TLS. Launch remote resources via SSH or cluster managers for distributed computing. The queued architecture scales efficiently to millions of tasks over thousands of connections, requiring no storage on the file system. Innovative features include event-driven promises, asynchronous parallel map, and seamless serialization of otherwise non-exportable reference objects.

Version: 2.4.0
Depends: R (≥ 3.6)
Imports: nanonext (≥ 1.6.1)
Suggests: cli, litedown
Enhances: parallel, promises
Published: 2025-06-25
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
Citation: mirai citation info
Materials: README NEWS
In views: HighPerformanceComputing
CRAN checks: mirai results

Documentation:

Reference manual: mirai.pdf
Vignettes: Mirai Map (source)
Promises - Shiny and Plumber (source)
Serialization - Arrow, ADBC, polars, torch (source)
Communications Backend for R (source)
mirai - Minimalist Async Evaluation Framework for R (source)
For Package Authors (source)
Community FAQs (source)

Downloads:

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

Reverse dependencies:

Reverse imports: crew, future.mirai, GeomArchetypal, ichimoku, rush
Reverse suggests: bbotk, logger, mlr3misc, mlr3tuning, shiny, shinyscholar, teal

Linking:

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