#' bacteria UI Function
#'
#' @description Archaeal mined taxonomy from articles.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_bacteria_ui <- function(id){
ns <- NS(id)
# Create header
header <- render_header("bug", "Bacterial mined data",
"Incidence of bacterial taxonomy in mined articles")
# Create table
table <- fluidRow(
semantic.dashboard::column(16, DT::dataTableOutput(ns("tbl_b"))))
tagList(header, table)
}
#' bacteria Server Function
#'
#' @noRd
#' @import semantic.dashboard
mod_bacteria_server <- function(input, output, session){
ns <- session$ns
# Load table
bacteria_table <- reactive({
readr::read_csv(app_sys('article/bacteria.csv'))})
# Render table
output$tbl_b <- DT::renderDataTable(bacteria_table(),
options=list(pageLength=7))
}
## To be copied in the UI
# mod_bacteria_ui("bacteria_ui_1")
## To be copied in the server
# callModule(mod_bacteria_server, "bacteria_ui_1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.