| reportBug.InternalErrorException {R.oo} | R Documentation |
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!
## S3 method for class 'InternalErrorException':
reportBug(this, method=c("htmlform"), verbose=TRUE, ...)
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. |
Returns nothing.
Henrik Bengtsson http://www.braju.com/R/
bug.report to report non-package specific bugs in R.
For more information see InternalErrorException.
## 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)