R/utils.R

Defines functions a_module_for_table_ui a_module_for_table_server square

Documented in square

a_module_for_table_ui <- function(id) {
  ns <- NS(id)
  tagList(
    tableOutput(ns("tbl"))
  )
}

a_module_for_table_server <- function(input, output, session, table) {
  output$tbl <- renderTable({
    req(table())
    table()
  })
}

#' @export
an_object <- 2L

#' A normal function
#' @export
square <- function(x) {
  x ^ 2
}
strboul/supreme.pkg.test documentation built on Nov. 5, 2019, 9:40 a.m.