library(bnutil)
library(shiny)
library(reshape2)
library(pgBatch)
library(combatapp)
library(ggplot2)
library(dplyr)
getdata = function() {
aData = AnnotatedData$new(data = combat_testdf, metadata =combat_testmetadf)
}
setResult = function(annotatedResult){
print(annotatedResult)
result = annotatedResult$data
}
bnMessageHandler = bnshiny::BNMessageHandler$new()
bnMessageHandler$getDataHandler = getdata
bnMessageHandler$setResultHandler = setResult
bnshiny::startBNTestShiny('combatapp', sessionType='show', bnMessageHandler=bnMessageHandler)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.