Commit 40c7cec9 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v0.2.10.32 UPDATE: all parameter units are now surrounded by brackets in the...

v0.2.10.32 UPDATE: all parameter units are now surrounded by brackets in the subtitle of the exported diagram plot of the GUI #14
Showing with 6 additions and 4 deletions
+6 -4
Package: airGRteaching
Type: Package
Title: Teaching Hydrological Modelling with the GR Rainfall-Runoff Models ('Shiny' Interface Included)
Version: 0.2.10.31
Version: 0.2.10.32
Date: 2020-04-29
Authors@R: c(
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@inrae.fr"),
......
......@@ -4,7 +4,7 @@
### 0.2.10.31 Release Notes (2020-04-29)
### 0.2.10.32 Release Notes (2020-04-29)
#### New features
......
......@@ -973,10 +973,12 @@ shinyServer(function(input, output, session) {
ParamTitle <- c(ParamTitle, "C1", "C2")
ParamUnits <- c(ParamUnits, "", "mm/°C/%s")
}
ParamTitle <- paste(ParamTitle, paste(getSim()$PARAM, sprintf(ParamUnits, getPrep()$TMGR$TimeUnit)), sep = " = ", collapse = ", ")
if (input$HydroModel == "GR2M") {
ParamTitle <- gsub("\\[-\\].*", "[-]", ParamTitle)
ParamUnits <- gsub("\\[-\\].*", "", ParamUnits)
}
ParamUnits <- sprintf("[%s]", ParamUnits)
ParamUnits <- gsub("\\[\\]", "[-]", ParamUnits)
ParamTitle <- paste(ParamTitle, paste(getSim()$PARAM, sprintf(ParamUnits, getPrep()$TMGR$TimeUnit)), sep = " = ", collapse = ", ")
ParamTitle <- gsub(" ,", ",", ParamTitle)
PngTitle <- sprintf("%s - %s/%s\n%s\n%s", input$Dataset,
input$HydroModel, ifelse(input$SnowModel == "CemaNeige", "CemaNeige", "No snow model"),
......
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