R/run_app.R

Defines functions runStmGui

Documented in runStmGui

#' Helper function to launch the stm shiny app
#'
#' \code{runStmGui} launches the shiny app to help with walking through the
#' creation of stm models
#'
#' @import stm
#' @import tm
#'
#' @export
runStmGui <- function() {
  appDir <- system.file("app", package = "stmgui")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `stmgui`.",
         call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}

Try the stmgui package in your browser

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

stmgui documentation built on May 1, 2019, 10:14 p.m.