OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
827 stars 301 forks source link

[Feat] winGRASS: add functionality for manually adding RStudio path to %PATH% within a GRASS session #1171

Open hellik opened 3 years ago

hellik commented 3 years ago

Is your feature request related to a problem? Please describe.

Actually in winGRASS, RStudio is added to %PATH% at startup via env.bat in order to be used within the winGRASS OSGeo4W shell

IF EXIST "%ProgramFiles%\RStudio\bin\rstudio.exe" set PATH=%PATH%;%ProgramFiles%\RStudio\bin

it seems that RStudio ships QT DLLs which may interfere and crash with QGIS bundled QT DLLs when QGIS is started with GRASS functionality.

Describe the solution you'd like

to avoid this QT DLL mismatch crash, adding a functionality into the wxGUI for manually adding RStudio path to %PATH% within a GRASS session instead of default by startup would be nice.

a starting point may be how %ADDON_PATH% is added to %PATH% by g.extension.

hellik commented 1 year ago

see related discussion [GRASS-user] Rscript error when using v.class.mlR if R-batch-files are not available in winGRASS for startung (addon) modulues requiring R.

I'll start a discussion on that.