There is a newer version of the record available.

Published October 6, 2025 | Version v2.5.1

r-lib/mirai: mirai 2.5.1

Authors/Creators

  • 1. @posit-pbc

Description

New Features

  • Adds race_mirai(), which accepts a list of mirai and waits efficiently for the next mirai amongst them to resolve (@t-kalinowski, #448).
  • New synchronous mode: daemons(sync = TRUE) causes mirai to run synchronously within the current process. This facilitates testing and debugging, e.g. via interactive browser() instances (#439, @kentqin-cve #442).

Updates

  • everywhere() adds argument .min to specify a minimum number of daemons on which to evaluate the expression (when using dispatcher). This creates a synchronization point and can be useful when launching remote daemons to ensure that the expression has run on all daemons to connect (@louisaslett, #330).
  • OpenTelemetry span names have been updated. Spans for long-running daemons are now split into short spans when they are created and when they end - refer to the updated vignette for more details (#464, #471).
  • Removes the following developer features:
    • nextget("pid") is no longer a supported option.
    • Argument id is removed at daemon(). This means that status() no longer reports daemon connection or disconnection events.
  • Removes deprecated argument tls at daemon(), launch_local() and launch_remote().
  • Removes deprecated dispatcher argument 'none' at daemons(), deprecated in mirai v2.1.0.
  • Fixes a phenomenon where stop_mirai() or mirai_map()[.stop] could on occasion cause (dispatcher) daemons to be interrupted and exit on subsequent runs (#459).
  • Non-dispatcher daemons now synchronize upon timeout or task-out, ensuring that they exit safely only after all data has been sent (#458).
  • Requires nanonext >= 1.7.1.

Files

r-lib/mirai-v2.5.1.zip

Files (440.4 kB)

Name Size Download all
md5:8df49cc43cd479e01a8142727a023275
440.4 kB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/r-lib/mirai/tree/v2.5.1 (URL)

Software