R/create_bat.R

#' Creates app's batch file, "app_name.bat"
#'
#' This procedure creates a batch file that starts a shiny app using \code{wsf/run.wsf}.
#'
#' @inheritParams create_app
#'
#' @return BATCH file in \code{app_dir}
#'
#' @seealso \code{\link{create_app}}
#'
#' @author Jonathan M. Hill
#' @export

create_bat <- function(app_name, app_dir) {
  writeLines("wscript utils\\wsf\\run.wsf",
             file.path(app_dir, paste0(app_name, ".bat")))
}

Try the RInno package in your browser

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

RInno documentation built on May 1, 2019, 10:52 p.m.