assert_is_batch_mode

How is R running?

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

Usage
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.

Aliases
  • assert_is_batch_mode
  • assert_is_interactive
  • assert_is_r_slave
  • assert_is_slave_r
  • is_batch_mode
  • is_interactive
  • is_r_slave
  • is_slave_r
Examples
# NOT RUN {
is_batch_mode()
is_interactive()
is_r_slave()
# }
Documentation reproduced from package assertive.reflection, version 0.0-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.