R/runGenekeepr.R

Defines functions runGeneKeepR

Documented in runGeneKeepR

#' Allows running \code{shiny} application with
#' \code{nprcgenekeepr::runGeneKeepR()}
#'
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#'
#' @return Returns the error condition of the Shiny application when it
#' terminates.
#'
#' @examples
#' \dontrun{
#' library(nprcgenekeepr)
#' runGeneKeepR()
#' }
#'
#' @importFrom shiny runApp
#' @export
runGeneKeepR <- function() {
  appDir <- system.file("application", package = "nprcgenekeepr")
  if (appDir == "") {
    stop(paste0("Could not find application directory. ",
                "Try re-installing `nprcgenekeepr`."),
         call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal", port = 6012)
}
rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.