rsbivand / rgrass

Interpreted interface between the GRASS geographical information system and R
https://rsbivand.github.io/rgrass/
26 stars 9 forks source link

Auto-detect the GRASS path? #64

Closed Robinlovelace closed 2 years ago

Robinlovelace commented 2 years ago

As described by Vero in the FOSS4G conference the following command in the shell returns GRASS's data path:

grass --config path
/usr/lib/grass80

Worth auto detecting this?

florisvdh commented 2 years ago

I think that would be interesting; was also mentioned by @veroandreo in https://github.com/rsbivand/rgrass/issues/29#issuecomment-866021930.

It depends on grass being available in the system PATH though; may not work in each situation?

Robinlovelace commented 2 years ago

I'm just proposing it as a fall-back. Best is for it to be set manually or have it set via an environment variable. However, if those are not set, no harm in trying to auto identify it before an error message is created.

rsbivand commented 2 years ago

Please also see https://lists.osgeo.org/pipermail/grass-stats/2022-August/001857.html

rsbivand commented 2 years ago

In released 0.3-5 on CRAN now, thanks!