R/run_app.R

Defines functions run_app

Documented in run_app

#' Run Shiny App
#'
#' @author Dorlan Francis
#'
#' @param port numeric specify port number
#' @param host character specify host name
#'
#' @export
#'
#' @importFrom shiny shinyApp
run_app <- function(host=NULL, port = NULL){
  if(!is.null(host)) options(shiny.host = as.character(host))
  if(!is.null(port)) options(shiny.port = as.integer(port))
  shiny::shinyApp(ui = shinyUI, server = shinyServer)
}
dfrancis01/dfo-ritch-project documentation built on June 26, 2022, 1:21 p.m.