GLEON / GLM3r

R package for basic GLM model running (version 3.0)
3 stars 15 forks source link

For exposing GLM messages as char vectors and capturing version #24

Closed jordansread closed 2 years ago

jordansread commented 2 years ago

fixes #23

glm_version(as_char = TRUE)
[1] "3.0.5"

glm_version()
       ----------------------------------------------------
       |  General Lake Model (GLM)   Version 3.0.5        |
       ----------------------------------------------------
glm built using gcc version 4.2.1
--help  : show this blurb
--nml <nmlfile> : get parameters from nmlfile
--xdisp : display temp/salt and selected others in x-window
--xdisp <plotsfile> : like --xdisp, but use <plotsfile> instead of plots.nml
--saveall : save plots to png files
--save-all-in-one : save all plots to png file
--save-all-in-one <destfile> : save all plots to png file <destfile>
[1] 0

and works with different versions of GLM even if the message moves around a bit (e.g., 3.2+).

jordansread commented 2 years ago

@hdugan can you snag a review on this?

hdugan commented 2 years ago

Thanks for updating this @jread-usgs