Learn R Programming

mirai (version 2.6.0)

info: Information Statistics

Description

Retrieve statistics for the specified compute profile.

Usage

info(.compute = NULL)

Value

Named integer vector or else NULL if the compute profile is yet to be set up.

Arguments

.compute

(character) name of the compute profile. Each profile has its own independent set of daemons. NULL (default) uses the 'default' profile.

Details

The returned statistics are:

  • Connections: active daemon connections.

  • Cumulative: total daemons that have ever connected.

  • Awaiting: mirai tasks currently queued for execution at dispatcher.

  • Executing: mirai tasks currently being evaluated on a daemon.

  • Completed: mirai tasks that have been completed or cancelled.

For non-dispatcher daemons: only 'connections' will be available and the other values will be NA.

Examples

Run this code
info()
daemons(sync = TRUE)
info()
daemons(0)

Run the code above in your browser using DataLab