Skip to content
Snippets Groups Projects
Unverified Commit 272a6564 authored by Todor Kondic's avatar Todor Kondic
Browse files

R/shinyUI.R: Modify launch function

* R/shinyUI.R(launch): New arguments.
Added ability to launch in script mode (if GUI=F).
parent 5a47c43e
No related branches found
No related tags found
No related merge requests found
...@@ -1883,7 +1883,14 @@ mk_shinyscreen <- function(fnStyle=system.file('www/custom.css',package = 'shiny ...@@ -1883,7 +1883,14 @@ mk_shinyscreen <- function(fnStyle=system.file('www/custom.css',package = 'shiny
} }
##' @export ##' @export
launch<-function(...) { launch<-function(GUI=T,fnConf="",...) {
app<-mk_shinyscreen() if (GUI) {
shiny::runApp(appDir = app,...) app<-mk_shinyscreen()
shiny::runApp(appDir = app,...)
} else {
if (nchar(fnConf)==0) {
fnConf <- commandArgs(trailingOnly=T)[[1]]
}
run(fnConf)
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment