getCOMErrorCode <-
function(name)
{
.COMErrors[name]
}
COMError <-
function(code, description = "", className = "COMError")
{
if(is.character(code))
code <- getCOMErrorCode(code)
x <- list(code = as.numeric(code), description = description)
class(x) <- className
x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.