Published September 4, 2025
| Version v2.5.0
Software
Open
r-lib/mirai: mirai 2.5.0
Description
Behavioural Changes
- Behavioural changes for
daemons():- Returns invisibly logical
TRUEwhen creating daemons andFALSEwhen resetting, for simplicity and consistency (#384). - Creating new daemons resets any existing daemons for the compute profile rather than error.
This means that an explicit
daemons(0)is no longer required before applying new settings (thanks @eliocamp, #383). - Calling without supplying any arguments now errors rather than return the value of
status().
- Returns invisibly logical
New Features
- Complete observability of mirai requests by emitting OpenTelemetry traces when tracing is enabled by the otelsdk package (#394).
- Adds
info()as an alternative tostatus()for retrieving more succinct information statistics, more convenient for programmatic use (thanks @wlandau, #410). - Adds
with_daemons()andlocal_daemons()helper functions for using a particular compute profile. These work with daemons that are already set up unlike the existingwith.miraiDaemons()method, which creates a new scope and tears it down when finished (#360). - A mirai now has an attribute
id, which is a monotonically increasing integer identifier unique to each session.
Updates
stop_mirai()is more efficient and responsive, especially for 'mirai_map' objects (#417).miraiErrorenhancements:- The original condition classes are preserved as
$condition.class(thanks @sebffischer, #400). - The print method includes the customary additional line break (thanks @sebffischer, #399).
- The original condition classes are preserved as
- Fixes
daemons(n)failing to launch local daemons if mirai was installed in a custom user library set by an explicit.libPaths()call in '.Rprofile' (thanks @erydit and @dpastoor, #390). - Improved behaviour for
serial_config()custom serialization. If the serialization hook function errors or otherwise fails to return a raw vector, this will error out rather than be silently ignored (thanks @dipterix, #378). as.promise()method for mirai made robust for high-throughput scenarios (#377).mirai_map()now supports Arrow Tables and Polars DataFrames (#366).require_daemons()arguments are swapped so that.computecomes beforecallfor ease of use. Previous usage will work for the time being, although is deprecated and will be defunct in a future version.- Enhancements to
everywhere():- Consecutive
everywhere()calls are permissible again when using dispatcher (behaviour update in v2.4.1) (#354). - No longer has any effect on the RNG stream when using a reproducible
seedvalue atdaemons()(#356).
- Consecutive
- A
mirai()evaluated on an ephemeral daemon returns invisibly, consistent with other cases (#351). daemon()gains atlscertargument for custom TLS certificates. The change in argument name lets this be passed when making adaemons()call (#344).- The
tlsargument atdaemon(),launch_local()andlaunch_remote()is deprecated. - Requires nanonext >= 1.7.0.
Files
r-lib/mirai-v2.5.0.zip
Files
(437.6 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:f7610a5060cc87da8d81d24b1b88fd84
|
437.6 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/r-lib/mirai/tree/v2.5.0 (URL)
Software
- Repository URL
- https://github.com/r-lib/mirai