check_database <- function( database,
allowed_db = c( "psycur15", "psycur16", "ALL" ) ) {
#database <- toupper( database )
if( sum( database %in% allowed_db ) == 1 ) {
return( database )
} else {
stop("Invalid given 'database' ('", database, "'). ",
'Try ?psygenetGene or \"?psygenetDisease\" to check the ',
'available databases.')
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.