Skip to contents

Just some helpful functions for managing the mirai daemons and parallel processing.

Usage

using_daemons()

n_daemons()

machine_cores(all.tests = FALSE, logical = TRUE)

Arguments

all.tests

Logical: if true apply all known tests.

logical

Logical: if possible, use the number of physical CPUs/cores (if FALSE) or logical CPUs (if TRUE). Currently this is honoured only on macOS, Solaris and Windows.

Details

using_daemons() returns TRUE if there are any mirai daemons running.

n_daemons() returns the number of mirai daemons running.

machine_cores() returns the number of cores on the machine. This function is from detectCores and is used detect the number of cores on the machine.