SDFDataTable | R Documentation |
Creates and HTML DataTable showing the compound image along with the fields in the compound data block. Using a browser, this table can be filtered and paged, among other things.
This uses the DT library to create the DataTable.
SDFDataTable(sdfset)
sdfset |
An |
Returns the result of the datatable
function from the DT
library.
An HTML file can be created from this value by calling the saveWidget
function
on it.
Kevin Horan
DT library: https://rstudio.github.io/DT/ DataTables javascript library: https://datatables.net/
## Not run: #depends on ChemmineOB
library(ChemmineR)
library(DT)
data(sdfsample)
# this will open a browser to display the result
x=SDFDataTable(sdfsample[1:3])
# if no GUI is available or you want to save the HTML result:
saveWidget(x,"output.html")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.