[GRASS-user] Detecting GRASS version when only specifying GRASS directory

Hamish hamish_b at yahoo.com
Mon Sep 12 18:48:13 EDT 2011

Rainer wrote:
> I am using GRASS from within an R script, and would need
> the GRASS version. I do not know the startup script, so grass
> --version is not an option. Nevertheless, I have obviously
> specified the GRASS directory where the grass executables and
> scripts sit. Is there one which I can use to get the grass
> version?

If grass is started you can use the GRASS_VERSION enviro variable
or the g.version module to get it.

If GRASS is not started you can look in the


More information about the grass-user mailing list