warcraft_mode: Enter Warcraft Mode

View source: R/mode.R

warcraft_modeR Documentation

Enter Warcraft Mode

Description

Enter Warcraft Mode

Usage

warcraft_mode(n = 500, p = 0.1)

warcraft(n = 500, p = 0.1)

Arguments

n

Maximum number of times to call warcraft audio before warcraft mode expires. Defaults to 500. To disable warcraft mode, set this value to FALSE.

p

Desired proportion of top-level tasks that should trigger the playing of audio files. Defaults to play audio during roughly 1 out of 10 top level tasks.

Value

Invisibly enters warcraft_mode (getOption("warcraft_mode"))

Examples

## Not run: 
## load warcraft
library(warcraft)

## enter warcraft mode
warcraft_mode()

## disable warcraft mode
warcraft_mode(FALSE)

## play lots of warcraft sounds for entire R session
warcraft_mode(Inf, 1.0)


## End(Not run)

mkearney/warcraft documentation built on April 21, 2023, 11:47 a.m.