Commit bd218ebc authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.6.3.34 docs(man): break to long code line in the Runmodel_Lag example in...

v1.6.3.34 docs(man): break to long code line in the Runmodel_Lag example in order to avoid NOTE during CRAN check
Showing with 5 additions and 3 deletions
+5 -3
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.3.33
Version: 1.6.3.34
Date: 2020-11-06
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -4,7 +4,7 @@
### 1.6.3.33 Release Notes (2020-11-06)
### 1.6.3.34 Release Notes (2020-11-06)
#### New features
......
......@@ -45,7 +45,9 @@ data(L0123001)
## Simulating a reservoir
# Withdrawing 1 m3/s with an instream flow of 1 m3/s
Qupstream <- matrix(- unlist(lapply(BasinObs$Qls / 1000 - 1, function(x) {min(1, max(0,x, na.rm = TRUE))})), ncol = 1)
Qupstream <- matrix(- unlist(lapply(BasinObs$Qls / 1000 - 1, function(x) {
min(1, max(0,x, na.rm = TRUE))
})), ncol = 1)
# Except between July and November when releasing 3 m3/s
month <- as.numeric(format(BasinObs$DatesR,"\%m"))
Qupstream[month >= 7 & month <= 9] <- 3
......
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