En raison d'une défaillance matérielle, les jobs d'intégration continue peuvent échouer sans raison évidente sur les runners partagés. Les disques incriminés devraient être changés en fin de semaine. Merci de votre compréhension.

Commit 6f76419c authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v0.2.8.67 BUG: the title of the exported image of the model diagram plot no...

v0.2.8.67 BUG: the title of the exported image of the model diagram plot no longer overflows if there are a lot of parameter values to display
parent fb512c52
Package: airGRteaching
Type: Package
Title: Teaching Hydrological Modelling with the GR Rainfall-Runoff Models ('Shiny' Interface Included)
Version: 0.2.8.66
Version: 0.2.8.67
Date: 2020-02-27
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.8.66 Release Notes (2020-02-26)
### 0.2.8.67 Release Notes (2020-02-26)
#### New features
......
......@@ -931,12 +931,21 @@ shinyServer(function(input, output, session) {
if (getPlotType() == 4) {
isCN <- input$SnowModel == "CemaNeige"
png(filename = file, width = 550*k, height = ifelse(isCN, 1000, 900)*k, pointsize = 12, res = 150)
PngTitle2 <- gsub(", C1", "\nC1", PngTitle)
PngTitleMD <- sprintf("%s - %s/%s\n%s\n%s", input$Dataset,
input$HydroModel, ifelse(input$SnowModel == "CemaNeige", "CemaNeige", "No snow model"),
input$Event,
ParamTitle)
if (grepl("X5", PngTitleMD)) {
PngTitleMD <- gsub(", X5", "\nX5", PngTitleMD)
} else {
PngTitleMD <- gsub(", C1", "\nC1", PngTitleMD)
}
par(oma = c(0, 0, ifelse(isCN, 7, 6), 0))
.DiagramGR(OutputsModel = getData()$OutputsModel, Param = getSim()$PARAM,
SimPer = input$Period, EventDate = input$Event,
HydroModel = input$HydroModel, CemaNeige = input$SnowModel == "CemaNeige")
mtext(text = PngTitle2, side = 3, outer = TRUE, cex = 1.2, line = ifelse(isCN, -0.15, 0.6))
mtext(text = PngTitleMD, side = 3, outer = TRUE, cex = 1.2, line = ifelse(isCN, -0.15, 0.6))
dev.off()
}
}
......
Markdown is supported
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