Learn R Programming

mirai (version 2.6.0)

require_daemons: Require Daemons

Description

Returns TRUE invisibly only if daemons are set, otherwise produces an informative error for the user to set daemons, with a clickable function link if the cli package is available.

Usage

require_daemons(.compute = NULL, call = environment())

Value

Invisibly, logical TRUE, or else errors.

Arguments

.compute

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

call

(environment) execution environment for error attribution, e.g. environment(). Used by cli for error messages.

Examples

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

Run the code above in your browser using DataLab