Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
sagJL
Commits
331979e9
Commit
331979e9
authored
Dec 06, 2019
by
mmassaviol
Browse files
Update (add dowload config file)
parent
70f43c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.R
View file @
331979e9
...
...
@@ -752,20 +752,29 @@ generate_menu <- function() {
if
(
"RULEGRAPH"
%in%
names
(
APP
)){
name
<-
"RULEGRAPH"
icon
<-
"gear"
menu
<-
"
Rule G
raph"
menu
<-
"
Draw workflow g
raph"
res
<-
res
+
'\tmenuItem("'
+
menu
+
'", tabName="'
+
name
+
'", icon=icon("'
+
icon
+
'", lib="font-awesome"), newtab=FALSE),\n\n'
}
if
(
"download"
%in%
names
(
APP
)){
res
<-
res
+
'\ttags$br(),\n\n'
res
<-
res
+
'\tdownloadButton("'
+
APP
$
download
$
shiny_button
$
name
+
'", "'
+
APP
$
download
$
shiny_button
$
label
+
'", class="'
+
APP
$
download
$
shiny_button
$
class
+
'", style="color:black;margin: 6px 5px 6px 15px;"),\n\n'
res
<-
res
+
'\ttags$br(),\n\n'
}
res
<-
res
+
'\ttags$br(),\n\n'
res
<-
res
+
'\tnumericInput("cores", label = "Threads available", min = 1, max = 24, step = 1, width = "auto", value = 16),\n'
# select where to run again from
choices
=
"list('
none
'='none'
,
"
choices
=
"list('
No
'='none'"
for
(
step
in
APP
$
pages
[
2
:
length
(
APP
$
pages
)]){
# all steps but remove global_params page
choices
<-
choices
+
"'"
+
step
$
label
+
"'='"
+
step
$
name
+
"'
,
"
choices
<-
choices
+
"
,
'"
+
step
$
label
+
"'='"
+
step
$
name
+
"'"
}
res
<-
res
+
'selectInput("force_from", label = "Start again from a step : ", selected = "none", choices = '
+
choices
+
'
"All"="all"
)),'
res
<-
res
+
'selectInput("force_from", label = "Start again from a step : ", selected = "none", choices = '
+
choices
+
')),'
#
...
...
@@ -789,14 +798,6 @@ generate_menu <- function() {
res
<-
res
+
'\ttags$br(),\n'
res
<-
res
+
'\tactionButton("close_session", "Close session", icon("times"), class="btn btn-primary"),\n'
if
(
"download"
%in%
names
(
APP
)){
res
<-
res
+
'\ttags$br(),\n\n'
res
<-
res
+
'\tdownloadButton("'
+
APP
$
download
$
shiny_button
$
name
+
'", "'
+
APP
$
download
$
shiny_button
$
label
+
'", class="'
+
APP
$
download
$
shiny_button
$
class
+
'", style="color:black;margin: 6px 5px 6px 15px;"),\n\n'
}
res
<-
res
+
'\ttags$br(),tags$br(),\n\n'
res
<-
res
+
'\tmenuItem("Powered by mbb", href="http://mbb.univ-montp2.fr/MBB/index.php", newtab=TRUE, icon=icon("book", lib="font-awesome"), selected=NULL)\n\n'
...
...
@@ -1139,6 +1140,14 @@ generate_app <- function() {
res
<-
res
+
'\t\ttoggle_inputs(input_list,T,F)\n'
res
<-
res
+
'\t})\n'
res
<-
res
+
'output$DownloadParams <- downloadHandler(\n'
res
<-
res
+
'\tfilename = function() {\n'
res
<-
res
+
'\t\tpaste0("params", Sys.Date(), ".yaml", sep="")\n'
res
<-
res
+
'\t},\n'
res
<-
res
+
'\tcontent = function(file) {\n'
res
<-
res
+
'\t\tsave_params(file)\n'
res
<-
res
+
'\t})\n'
res
<-
res
+
'source("./server/opt_global.R", local=T)\n'
#for(x in 1:length(APP$pages)) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment