I am using the rgrass7 package in R in order to work with GRASS GIS. After having set the needed enviornment variables, I can now launch a GRASS session from R and and work on my GRASS data using RStudio.
I would like to work with the GRASS GUI and the rgrass7 interface the same way as when I start R (RStudio) from the GRASS terminal (Using RStudio in a GRASS GIS session). The only difference is that I would like to work mainly in RStudio and only open the GRASS GUI only when needed.
Is it possible to launch the GRASS GUI from R within a running GRASS session?
When I try the sollowing command, the GUI does not open and I get a warning message:
> execGRASS("g.gui", ui="wxpython") Warning message: running command 'g.gui.exe ui=wxpython' had status 5