Description Usage Arguments Value Examples
This function outputs the html tags needed to create UI for the successes, warnings, and failures results boxes.
This gives functionality to the results boxes module UI, attaching titles and populating the validation results.
1 2 3 | results_boxes_ui(id)
results_boxes_server(input, output, session, results)
|
id |
The module id. |
input |
The input from |
output |
The output from |
session |
The session from |
results |
List of the validation results. If |
The html UI for the module.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | library("shiny")
library("shinydashboard")
server <- function(input, output) {
# Create some sample results
res <- list(
check_pass(msg = "All good!", behavior = "Values should be >10"),
check_fail(
msg = "Some values are too small",
behavior = "Values should be > 10",
data = c(5.5, 1.3)
)
)
# Show results in boxes
callModule(results_boxes_server, "Validation Results", res)
}
ui <- function(request) {
dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(
includeCSS(
system.file("app/www/custom.css", package = "dccvalidator")
),
results_boxes_ui("Validation Results")
)
)
}
## Not run:
shinyApp(ui, server)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.