R/hello.R

Defines functions hello helloWorldApp

Documented in helloWorldApp

hello <- function() {
  print("Hello, world!")
}

#' Application that displays HelloWorld
#' @return a shiny app
#' @export
helloWorldApp <- function() {
    ui <- shiny::fluidPage(
        shiny::htmlOutput("myOutput")
    )
    server <- function(input, output, session) {
        output$myOutput <- shiny::renderUI({
            hello()
        })
    }
    shiny::shinyApp(ui = ui, server = server)
}
rfaelens/exampleShinyTest documentation built on April 5, 2020, 12:49 a.m.