R/mod_homepage.R

Defines functions mod_homepage_server mod_homepage_ui

#' homepage UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_homepage_ui <- function(id) {
  ns <- NS(id)
  nav_panel(
    "Home",
    card(
      title = "OrdinalSimR",
      includeHTML(system.file("homepage.html", package = "ordinalsimr"))
    )
  )
}

#' homepage Server Functions
#'
#' @noRd
mod_homepage_server <- function(id) {
  moduleServer(id, function(input, output, session) {
    ns <- session$ns
  })
}

## To be copied in the UI
# mod_homepage_ui("homepage_1")

## To be copied in the server
# mod_homepage_server("homepage_1")

Try the ordinalsimr package in your browser

Any scripts or data that you put into this service are public.

ordinalsimr documentation built on June 25, 2025, 5:11 p.m.