Skip to content

Using GLM in R

Matt Hipsey edited this page Aug 30, 2026 · 2 revisions

Note

This page is a stub, and needs review by the maintainers. The R packages listed below are community-maintained and were written against the GLM 3.x line — their compatibility with GLM 4.0.0 has not been confirmed. Treat the versions and links here as a starting point.

Several R packages exist for driving GLM and for post-processing its output.

Package Purpose
GLM3r Runs GLM from R, bundling the model executable
glmtools Reads, plots and summarises GLM output; edits .nml files

For a practical introduction using these tools, see the glm-workbook, which contains exercises and case studies for users new to lake modelling.

This repository also provides a Binder environment with RStudio, launchable from the badge on the repository README.

For a Python interface, see Using GLM in Python.

Still to document

  • Whether GLM3r and glmtools work against GLM 4.0.0 output, and any changes needed.
  • Whether the bundled executable in GLM3r should be replaced with a 4.x binary from binaries.
  • Confirmation that the Binder environment still builds against the current source tree.
  • A recommended install sequence.

Clone this wiki locally