Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Impact démographique des collisions aviaires avec les éoliennes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CEFE
Interactions Humains-Animaux
Impact démographique des collisions aviaires avec les éoliennes
Commits
7b39f8a9
Commit
7b39f8a9
authored
3 years ago
by
thierrychambert
Browse files
Options
Downloads
Patches
Plain Diff
Added message to progress bar
Works great !!!
parent
a8368f4e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inst/ShinyApp/server.R
+8
-4
8 additions, 4 deletions
inst/ShinyApp/server.R
inst/ShinyApp/ui.R
+4
-4
4 additions, 4 deletions
inst/ShinyApp/ui.R
with
12 additions
and
8 deletions
inst/ShinyApp/server.R
+
8
−
4
View file @
7b39f8a9
...
...
@@ -1676,7 +1676,7 @@ server <- function(input, output, session){
##--------------------------------------------
# Don't do anything if analysis is already being run
if
(
nclicks
()
!=
0
){
showNotification
(
"
Already running analysi
s"
)
showNotification
(
"
Une analyse est dj est en cours"
)
return
(
NULL
)
}
...
...
@@ -1768,7 +1768,9 @@ server <- function(input, output, session){
for
(
sim
in
1
:
nsim
){
## Progress bar
progress
$
set
(
value
=
sim
)
progress
$
set
(
value
=
sim
,
message
=
"Simulation progress"
,
detail
=
paste
(
"simulation"
,
sim
))
Sys.sleep
(
0.1
)
# Check for user interrupts
...
...
@@ -1912,7 +1914,9 @@ server <- function(input, output, session){
result_N
(
NULL
)
print
(
e
$
message
)
showNotification
(
e
$
message
)
Sys.sleep
(
1
)
#Sys.sleep(1)
progress
$
close
()
nclicks
(
0
)
})
# After the promise has been evaluated set nclicks to 0 to allow for anlother Run
...
...
@@ -1956,7 +1960,7 @@ server <- function(input, output, session){
observeEvent
(
input
$
status
,{
print
(
"Status"
)
showNotification
(
get_status
())
if
(
get_status
()
=
=
"
Prt"
)
run_message
(
"Prt"
)
if
(
run_message
()
!
=
"
Analyse en cours...
"
)
run_message
(
"Prt"
)
})
# Let user get analysis progress
...
...
This diff is collapsed.
Click to expand it.
inst/ShinyApp/ui.R
+
4
−
4
View file @
7b39f8a9
...
...
@@ -1002,11 +1002,11 @@ h4{
actionButton
(
inputId
=
"status"
,
"Verifier l'tat"
),
actionButton
(
inputId
=
'clear'
,
'Effacer les rsultats'
),
br
(
" "
),
span
(
textOutput
(
"msg_run"
),
align
=
"left"
,
style
=
"font-weight: normal; font-size: 16px;"
),
br
(),
span
(
textOutput
(
"run_time"
),
align
=
"left"
,
style
=
"font-weight: normal; font-size: 16px;"
),
span
(
textOutput
(
"msg_run"
),
align
=
"left"
,
style
=
"font-weight: bold; font-size: 16px;"
),
br
(
" "
),
span
(
textOutput
(
"run_time"
),
align
=
"left"
,
style
=
"font-weight: normal; font-size: 12px;"
),
#hr(),
#br(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment