Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
sagJL
Commits
fb982760
Commit
fb982760
authored
Oct 22, 2020
by
mmassaviol
Browse files
Debug
parent
0360b1ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.R
View file @
fb982760
...
...
@@ -965,7 +965,6 @@ generate_app <- function() {
# Observe if the workflow is running
res
<-
res
+
'\tobserve({\n'
res
<-
res
+
'\t\trv$timer()\n'
res
<-
res
+
'\t\tif (!file.exists(paste0(input$results_dir,"/logs/workflow.running"))){rv$running = F}\n'
res
<-
res
+
'\t\tif (isolate(rv$running)){\n'
res
<-
res
+
'\t\t\tif (file.exists(paste0(input$results_dir,"/logs/runlog.txt"))){\n'
res
<-
res
+
'\t\t\t\trv$textstream <- paste(readLines(paste0(input$results_dir,"/logs/runlog.txt"),warn=F), collapse = "<br/>")\n'
...
...
@@ -992,6 +991,7 @@ generate_app <- function() {
#res <- res + '\t\t\t\t"var objDiv = document.getElementById(\'run_out\'); objDiv.scrollTop = objDiv.scrollHeight;"\n'
#res <- res + '\t\t\t)\n'
res
<-
res
+
'\t\t}\n'
res
<-
res
+
'\t\tif (!file.exists(paste0(input$results_dir,"/logs/workflow.running"))){rv$running = F}\n'
res
<-
res
+
'\t})\n'
res
<-
res
+
'\toutput$run_out <- renderUI({\n'
res
<-
res
+
'\t\tHTML(rv$textstream)\n'
...
...
Write
Preview
Supports
Markdown
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