is_batch_mode: How is R running?

Description Usage Arguments Value See Also Examples

View source: R/is-r-mode.R

Description

Tests to see if R is running in batch mode/interactively.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
assert_is_batch_mode(severity = getOption("assertive.severity", "stop"))

assert_is_interactive(severity = getOption("assertive.severity", "stop"))

assert_is_r_slave(severity = getOption("assertive.severity", "stop"))

assert_is_slave_r(severity = getOption("assertive.severity", "stop"))

is_batch_mode()

is_interactive()

is_r_slave()

is_slave_r()

Arguments

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

Value

is_batch_mode returns TRUE if R is running in batch mode. is_interactive returns TRUE if R is running interactively.

See Also

EnvVar and interactive.

Examples

1
2
3

assertive.reflection documentation built on July 31, 2020, 1:06 a.m.