#' Command to run Adjutant
#'
#' @details run adjutant shiny application from within adjutant package
#'
#' @import shiny
#' @export
runAdjutant <- function() {
appDir <- system.file("shinyapp", package = "adjutant")
if (appDir == "") {
stop("Could not find example directory. Try re-installing `mypackage`.", call. = FALSE)
}
#passing the current directory to the shiny app
.GlobalEnv$workDir <- getwd()
on.exit(rm(workDir, envir=.GlobalEnv))
shiny::runApp(appDir, display.mode = "normal")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.