reportBug.InternalErrorException {R.oo}R Documentation

Send a bug report

Description

Send a bug report about this error to the maintainer and author of the suspicious package.

NOTE: This method is still not supported and does NOT work!

Usage

## S3 method for class 'InternalErrorException':
reportBug(this, method=c("htmlform"), verbose=TRUE, ...)

Arguments

method If "htmlform", a temporary HTML page containing a bug report form with additional pre-entered information about the exception and the R platform etc, is opened form manual editing. By submitting this report, the author of the R.oo package will receive a bug report, which will also be sent back to the reporter.
verbose If TRUE, progress information is written while creating the HTML page.
... Not used.

Value

Returns nothing.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

bug.report to report non-package specific bugs in R. For more information see InternalErrorException.

Examples

## Not run: library(R.colors)

myLog <- function(x, ...) {
  if (!is.numeric(x)) {
    throw(InternalErrorException("Argument 'x' to myLog() is not numeric: ", mode(x), package=R.colors))
  }
  log(x, ...)
}

myLog(2)

ex <- NULL
trycatch({
  myLog("a")
}, ANY={
  ex <- Exception$getLastException()
})
## End(Not run)

[Package R.oo version 1.2.3 Index]