Hi;
I usually start GRASS from my RConsole as so:
#perform initial GRASS setup
initGRASS(“C:\OSGeo4W64\apps\grass\grass-7.4.1”, home = getwd(), gisDbase = “GRASS_TEMP”, mapset = “PERMANENT”, override = TRUE)
and I never had problems until last week. I was getting errors and couldn’t figure out why. Later on I came to find out that my GRASS instance was closed.
I don’t know why GRASS unexpectedly close without notification. With that said, is there a way in R to check if GRASS is still running in the background?
I can probably manually check my task manager to see if there is a process running but in a more elegant way I want to do it from R.
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.html
Hi Felipe
what about gmeta()? If grass is running, it gives you location and region metadata, otherwise it rises an error…
Or you could also ask in the grass-stats list: https://lists.osgeo.org/mailman/listinfo/grass-stats
HTH,
Vero
El mié., 10 oct. 2018 a las 17:09, Felipe Carrillo (<mazatlanmexico@yahoo.com>) escribió:
Hi;
I usually start GRASS from my RConsole as so:
#perform initial GRASS setup
initGRASS(“C:\OSGeo4W64\apps\grass\grass-7.4.1”, home = getwd(), gisDbase = “GRASS_TEMP”, mapset = “PERMANENT”, override = TRUE)
and I never had problems until last week. I was getting errors and couldn’t figure out why. Later on I came to find out that my GRASS instance was closed.
I don’t know why GRASS unexpectedly close without notification. With that said, is there a way in R to check if GRASS is still running in the background?
I can probably manually check my task manager to see if there is a process running but in a more elegant way I want to do it from R.
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.html
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
Hi Vero;
I will try that as well. I just need an indication that grass is running before I execute my script. I think that this may work if I put it at the very beginning.
Sent from Yahoo Mail on Android
On Thu, Oct 11, 2018 at 5:23 PM, Veronica Andreo
veroandreo@gmail.com wrote:
Hi Felipe
what about gmeta()? If grass is running, it gives you location and region metadata, otherwise it rises an error…
Or you could also ask in the grass-stats list: https://lists.osgeo.org/mailman/listinfo/grass-stats
HTH,
Vero
El mié., 10 oct. 2018 a las 17:09, Felipe Carrillo (<mazatlanmexico@yahoo.com>) escribió:
Hi;
I usually start GRASS from my RConsole as so:
#perform initial GRASS setup
initGRASS(“C:\OSGeo4W64\apps\grass\grass-7.4.1”, home = getwd(), gisDbase = “GRASS_TEMP”, mapset = “PERMANENT”, override = TRUE)
and I never had problems until last week. I was getting errors and couldn’t figure out why. Later on I came to find out that my GRASS instance was closed.
I don’t know why GRASS unexpectedly close without notification. With that said, is there a way in R to check if GRASS is still running in the background?
I can probably manually check my task manager to see if there is a process running but in a more elegant way I want to do it from R.
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.html
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user