R/runUI.R

Defines functions runUISynthetic runUI

#' @export
runUI <- function() {
  appDir <- system.file("shiny-examples", "vsapp", package = "variableStars")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `variableStars`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}

#' @export
runUISynthetic <- function() {
  appDir <- system.file("shiny-examples", "experiment", package = "variableStars")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `variableStars`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}
rmaestre/variableStars documentation built on April 11, 2020, 11:10 p.m.