<html><head></head><body><div class="ydp66547bc8yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><span><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0);">Hi;</div><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0);">I usually start GRASS from my RConsole as so:</div><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0);"><br></div><div style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0);"><div>#perform initial GRASS setup</div><div>initGRASS("C:\\OSGeo4W64\\apps\\grass\\grass-7.4.1", home = getwd(), gisDbase = "GRASS_TEMP", mapset = "PERMANENT", override = TRUE)</div><div><br></div><div>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.</div><div>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?</div><div>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. </div></div></span><br></div><div><br></div><div class="ydp66547bc8signature"><div>Felipe D. Carrillo</div><div>Supervisory Fishery Biologist</div><div>Department of the Interior</div><div>US Fish & Wildlife Service</div><div>California, USA</div><div><a href="http://www.fws.gov/redbluff/rbdd_jsmp.html" rel="nofollow" target="_blank">http://www.fws.gov/redbluff/rbdd_jsmp.html</a><br></div></div></div></div></body></html>