#' Title
#'
#' @param molecule
#'
#' @return
#' @export
#'
#' @examples
mol2text <-function(molecule) {
sdg <- rJava::.jnew("org.openscience.cdk.layout.StructureDiagramGenerator" )
sdg$setMolecule(molecule )
sdg$generateCoordinates()
mol <- sdg$getMolecule()
t <- mol$toString()
t
}
#mol2text(drugbank_structure[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.