Commit 7b120598 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v0.2.6.27 CLEAN: TZ environment variable removed on exit of ShinyGR fun

Showing with 5 additions and 5 deletions
+5 -5
Package: airGRteaching
Type: Package
Title: Teaching Hydrological Modelling with the GR Rainfall-Runoff Models ('Shiny' Interface Included)
Version: 0.2.6.26
Date: 2019-04-18
Version: 0.2.6.27
Date: 2019-04-23
Authors@R: c(
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@irstea.fr"),
person("Laurent", "Coron", role = c("aut"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -13,7 +13,7 @@ output:
### 0.2.6.26 Release Notes (2019-04-18)
### 0.2.6.27 Release Notes (2019-04-23)
#### Bug fixes
......
......@@ -141,10 +141,10 @@ ShinyGR <- function(ObsDF = NULL, DatesR = NULL, Precip = NULL, PotEvap = NULL,
theme = theme)
## timezone used
oTZ <- Sys.timezone()
# oTZ <- Sys.timezone()
Sys.setenv(TZ = "UTC")
on.exit({rm(.ShinyGR.args, .ShinyGR.hist, envir = .GlobalEnv) ; Sys.setenv(TZ = oTZ)})
on.exit({rm(.ShinyGR.args, .ShinyGR.hist, envir = .GlobalEnv) ; Sys.unsetenv("TZ")})
shiny::runApp(system.file("ShinyGR", package = "airGRteaching"), launch.browser = TRUE)
return(NULL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment