Package Package airGRteaching airGRteaching License License GPL 2 GPL 2

1 What is the airGRteaching package?

1.1 Presentation

airGRteaching logo

airGRteaching is an add-on package to the airGR package. It simplifies its use and is more specifically oriented towards teaching than airGR. It provides access to the GR rainfall-runoff models (GR4H, GR4J, GR5J, GR6J, GR2M, GR1A) and a snow melt and accumulation model (CemaNeige) with limited programming skills. This package also provides a graphical interface to help students exploring data and model results.

The airGRteaching package has been designed to fulfil a major requirement: facilitating the use of the airGR functionalities by students. The names of the functions and their arguments were chosen to this end.

1.2 Main features of airGRteaching

The package is mostly based on three new families of functions:

  • the functions that allow to complete very simply a hydrological modelling exercise
  • plotting functions to help students to explore observed data and to interpret the results of calibration and simulation of the GR models
  • a function which runs a ‘Shiny’ graphical interface that allows for displaying in real-time model parameters impacts on hydrographs

2 Installation

You can install the two packages with the following command:

If you use RStudio, you can use the Packages interface :

All the dependencie will ba automatically download and installed with airGRteaching:

  • airGR
  • dygraphs
  • htmlwidgets
  • markdown
  • plotrix
  • shiny
  • shinyjs
  • xts

You cannot run airGRteaching without airGR. You cannot perform dynamic graphics to visualize your inputs or your results time-series whithout the xts and the dygraphs packages, but you can produce static charts. All the other packages are needed to run the Shiny GUI.

You can download the airGRteaching source, Windows binaries or Mac OS X binaries on the CRAN.

3 Misc

3.1 How to cite the package

To cite the airGRteaching packages in your scientific document, please use the references returned by the citation() function:


To cite airGRteaching in publications use these two references:

  Delaigue, O., Thirel, G., Coron, L., Brigode, P. (2018). airGR and airGRteaching: Two
  open-source tools for rainfall-runoff modeling and teaching hydrology. HIC 2018. 13th
  International Conference on Hydroinformatics (eds. G.L. Loggia, G. Freni, V. Puleo & M.D.
  Marchis), vol. 3 of EPiC Series in Engineering, p. 541-548, EasyChair, URL:
  https://easychair.org/publications/paper/VQ52.

  Delaigue, O., Coron, L., Brigode, P. (2019). airGRteaching: Teaching Hydrological Modelling with
  GR (Shiny Interface Included). R package version 0.2.6.29. URL:
  https://CRAN.R-project.org/package=airGRteaching/.

To see these entries in BibTeX format, use 'print(<citation>, bibtex=TRUE)', 'toBibtex(.)', or set
'options(citation.bibtex.max=999)'.

To retrieve a “.bib” format for LaTeX documents, you can use the following command:

@InProceedings{,
  author = {O. Delaigue and G. Thirel and L. Coron and P. Brigode},
  title = {{airGR} and {airGRteaching}: Two Open-Source Tools for Rainfall-Runoff Modeling and Teaching Hydrology},
  booktitle = {HIC 2018. 13th International Conference on Hydroinformatics},
  editor = {Goffredo {La Loggia} and Gabriele Freni and Valeria Puleo and Mauro {De Marchis}},
  series = {EPiC Series in Engineering},
  volume = {3},
  pages = {541-548},
  year = {2018},
  publisher = {EasyChair},
  bibsource = {EasyChair, https://easychair.org},
  issn = {2516-2330},
  url = {https://easychair.org/publications/paper/VQ52},
  doi = {10.29007/qsqj},
}

@Manual{,
  title = {{airGRteaching}: Teaching Hydrological Modelling with {GR} ({Shiny} Interface Included)},
  author = {O. Delaigue and L. Coron and P. Brigode},
  journal = {R News},
  year = {2019},
  note = {R package version 0.2.6.29},
  url = {https://CRAN.R-project.org/package=airGRteaching/},
}

3.2 Known places where airGRteaching is used