biomart.available <- function(env)
{
mart <- try({ suppressMessages({ useMart(biomart=env$preferences$database.biomart, host=env$preferences$database.host, verbose=FALSE) }) }, silent=TRUE)
return(is(mart,"Mart"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.