R.oo (version 1.0.3)

showAndWait.simpleError: Display the message to the user and wait for the user to respond

Description

Display the message to the user and wait for the user to respond. If the tcltk package is installed a TclTk dialog box will be used, otherwise the message will be shown on the standard output and the user is requested to press enter to continue. If called in an non-interactive mode, an Exception is thrown.

Usage

## S3 method for class 'simpleError}(this, ...)':
showAndWaitundefined

...{Not used.}

Returns an invisible reply from the user.

tryCatch({
    log("a");
  }, error = function(ex) {
    showAndWait(ex);
  })

See also interactive().
  For more information see simpleError.

[object Object]

programming
methods
error

Arguments