Skip to contents

[Experimental]

Usage

check_interactive()

test_interactive()

assert_interactive()

Value

  • test_*: TRUE if it passes the test; FALSE otherwise.

  • check_*: TRUE if it passes the test; a string with a message otherwise.

  • assertion_*: The same input (as invisible) if it passes the test; an error message otherwise.

Examples

if (interactive()) {
  test_interactive()
  #> [1] TRUE # Expected
}