R/cytofkit_shiny_dashboard.R

Defines functions cytofkit_shiny_dashboard

Documented in cytofkit_shiny_dashboard

#' Title
#'
#' @param onServer Whether the app is running on a server.
#' @param port Manually set a port, default is randomly allocated.
#'
#' @return cytofkit2
#' @export
#' @examples 
  #cytofkit_shiny_dashboard()  
cytofkit_shiny_dashboard = function(onServer = FALSE, port = NULL){
  if(isTRUE(onServer)){
    host <- "0.0.0.0"
  }else{
    host <- "127.0.0.1"
  }
  if(!is.null(port)){
    shiny::runApp(system.file('shiny', package = 'cytofkit2'), host = host,
                  port = port)
  } else {
    shiny::runApp(system.file('shiny', package = 'cytofkit2'), host = host)
  }
}
JinmiaoChenLab/cytofkit2 documentation built on May 12, 2022, 8:09 a.m.