Package: mirai 2.7.1.9000

Charlie Gao

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 and bounded queues, promises for reactive programming, 'OpenTelemetry' distributed tracing, and custom serialization for cross-language data types.

Authors:Charlie Gao [aut, cre], Joe Cheng [ctb], Posit Software, PBC [cph, fnd], Hibiki AI Limited [cph]

mirai_2.7.1.9000.tar.gz
mirai_2.7.1.9000.zip(r-4.7)mirai_2.7.1.9000.zip(r-4.6)mirai_2.7.1.9000.zip(r-4.5)
mirai_2.7.1.9000.tgz(r-4.6-any)mirai_2.7.1.9000.tgz(r-4.5-any)
mirai_2.7.1.9000.tar.gz(r-4.7-any)mirai_2.7.1.9000.tar.gz(r-4.6-any)
mirai_2.7.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mirai/json (API)

# Install 'mirai' in R:
install.packages('mirai', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-lib/mirai/issues

Pkgdown/docs site:https://mirai.r-lib.org

On CRAN:

Conda:

asyncasynchronous-tasksconcurrencydistributed-computinghigh-performance-computingparallel-computing

15.17 score 327 stars 165 packages 652 scripts 79k downloads 41 exports 1 dependencies

Last updated from:87cd04cc64. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK174
source / vignettesOK160
linux-release-x86_64OK163
macos-release-arm64OK151
macos-oldrel-arm64OK110
windows-develOK117
windows-releaseOK93
windows-oldrelOK90
wasm-releaseOK113

Exports:.flat.progress.stopcall_miraicluster_configcollect_miraidaemondaemonsdaemons_seteverywherehost_urlhttp_configinfois_error_valueis_miraiis_mirai_erroris_mirai_interruptis_mirai_maplaunch_locallaunch_remotelocal_daemonslocal_urlmake_clustermiraimirai_mapnextcodenextgetnextstreamon_daemonrace_mirairegister_serialremote_configrequire_daemonsserial_configssh_configstatusstop_clusterstop_miraitry_miraiunresolvedwith_daemons

Dependencies:nanonext

mirai - Reference Manual
1. Introduction | mirai | mirai (advanced) | daemons | 2. Error Handling | 3. Local Daemons | With Dispatcher (default) | Without Dispatcher | everywhere() | 4. Memory Management | Queue Backpressure | Non-blocking Submission | Shared Memory with Local Daemons | 5. mirai_map | Basic Usage | Collecting Options | Multiple Map | Nested Maps | 6. Remote Infrastructure | Remote Daemons Overview | Launching Remote Daemons | SSH Direct Connection | SSH Tunnelling | HPC Cluster Resource Managers | Job Arrays | HTTP Launcher | Default: Posit Workbench | Custom HTTP APIs | Troubleshooting | Generic Remote Configuration | Manual Deployment | TLS Secure Connections | Automatic Zero-configuration Default | CA Signed Certificates | 7. Compute Profiles | with_daemons() and local_daemons() | With Method | 8. Advanced Topics | Random Number Generation | Synchronous Mode

Last update: 2026-05-13
Started: 2025-11-26

mirai - Community FAQs
1. Migration from future_promise() | 2. Setting the random seed | 3. Accessing package functions during development | 4. Why does mirai() take time when it's meant to return immediately? | 5. Creating daemons on-demand or shutting down idle daemons | 6. Launching daemons --vanilla

Last update: 2026-05-06
Started: 2025-09-02

mirai - Quick Reference
Core Concepts | Key Takeaways | 1. Basic mirai Usage | Create and Access Results | Passing Data | 2. Local Daemons | Basic Setup | Daemon Configuration | Synchronous Mode (Testing/Debugging) | 3. Remote Daemons - SSH Direct | Setup Host to Accept Remote Connections | URL Constructors | SSH Configuration | 4. Remote Daemons - SSH Tunnelling | When to Use Tunnelling | Setup | 5. HPC Cluster Configurations | General Pattern | Scheduler-Specific Directives | 6. HTTP Launcher | 7. Manual Daemon Deployment | Generate Launch Commands | 8. Compute Profiles | Multiple Independent Profiles | Scoped Profiles | 9. Common Patterns | Temporary Daemons | Mixed Local/Remote Resources | Dynamic Scaling | 10. mirai_map - Parallel Map | Basic Usage | Collection Options | Multiple Map (over DataFrame/Matrix) | 11. Error Handling | 12. Monitoring | 13. Advanced Features | Timeouts | Cancellation | Evaluation Everywhere | Random Seeds (Reproducible) | Custom Serialization | TLS Configuration | 14. Dispatcher vs. Direct | 15. Quick Decision Tree | 16. Common Gotchas

Last update: 2026-05-04
Started: 2023-10-06

mirai - For Package Authors
Agent Skill | 1. Developer Interfaces | 2. Guidance

Last update: 2026-04-09
Started: 2025-09-02

mirai - Promises (Shiny and Plumber)
1. Event-driven promises | 2. Shiny ExtendedTask: Introduction | 3. Shiny ExtendedTask: Cancellation | 4. Shiny ExtendedTask: Generative Art | 5. Shiny ExtendedTask: mirai map | 6. Shiny Async: Coin Flips | 7. Shiny Async: Progress Bar | 8. Plumber GET Endpoint | 9. Plumber POST Endpoint

Last update: 2026-02-27
Started: 2025-07-15

mirai - Communications Backend for R
1. Mirai Parallel Clusters | 2. Foreach Support

Last update: 2025-11-26
Started: 2025-07-15

mirai - OpenTelemetry
1. Introduction | 2. Automatic Tracing Setup | 3. Span Types and Hierarchy | 3.1 Core Span Types | 3.2 Span Relationships and Context Propagation | 4. Status and Error Tracking | 5. Monitoring and Observability | 6. Integration with Observability Platforms

Last update: 2025-11-26
Started: 2025-09-02

mirai - Serialization (Arrow, ADBC, polars, torch)
1. Serialization: Arrow, polars and beyond | 2. Serialization: Torch | 3. Database Hosting using Arrow Database Connectivity | 4. Shiny / mirai / DBI / ADBC Integrated Example

Last update: 2025-11-26
Started: 2025-07-15