<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 7, 2016 at 3:25 PM, Roger Bivand <span dir="ltr"><<a href="mailto:Roger.Bivand@nhh.no" target="_blank">Roger.Bivand@nhh.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 7 Feb 2016, Andrew Plowright wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br>
<br>
I recently subscribed to this mailing list since I was hoping to get a bit<br>
of help setting up the rgrass7 package. I do all my GIS work in R, and am<br>
very excited by the prospect of using GRASS functions through the R<br>
environment. Unfortunately, I haven't gotten very far since I don't seem to<br>
be able to use the initGRASS() function correctly! When I run:<br>
<br>
library(rgrass7)<br>
initGRASS("C:\\Program Files\\GRASS GIS 7.0.3", home=tempdir())<br>
<br>
... R Studio simply runs forever. It does not give me an error message...<br>
it just keeps running until I force close the program. I am using R version<br>
3.2.2, and have installed GRASS version 7.0.3, which is installed in<br>
"C:\Program Files\GRASS GIS 7.0.3" folder. GRASS GIS seems to be running<br>
perfectly fine on its own.<br>
</blockquote>
<br>
<br>
Rstudio is very likely running the system*() commands and the commands setting environment variables in ways that interfere in your case. Start by using R from the command line, then RGui, then find out how to debug running functions in Rstudio and run initGRASS under the debugger to see at which step contact gets lost.<br>
<br>
I believe that there are reports of success using Rstudio within GRASS (in an existing GRASS location, starting Rstudio within GRASS).<br>
<br>
Does anyone have any experience? (I do not use Rstudio, so cannot tell - under Linux it wants R built in a specific way that I don't want to be forced to change to).<br></blockquote><div><br>I am using Rstudio within GRASS without problems (on Ubuntu 14.04). No specific configuration required as far as I remember. Also on Windows I generally have no problem running Rstudio under GRASS (the latter installed using OSGeo4W), but there I had to define the path to Rstudio (<a href="https://pvanb.wordpress.com/2014/12/17/access-r-from-grass-gis-on-windows/">https://pvanb.wordpress.com/2014/12/17/access-r-from-grass-gis-on-windows/</a>)<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Roger<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Any help would be greatly appreciated. Thank you!<br>
<br>
Andrew Plowright<br>
<br>
</blockquote>
<br>
-- <br>
Roger Bivand<br>
Department of Economics, Norwegian School of Economics,<br>
Helleveien 30, N-5045 Bergen, Norway.<br>
voice: <a href="tel:%2B47%2055%2095%2093%2055" value="+4755959355" target="_blank">+47 55 95 93 55</a>; fax <a href="tel:%2B47%2055%2095%2091%2000" value="+4755959100" target="_blank">+47 55 95 91 00</a><br>
e-mail: <a href="mailto:Roger.Bivand@nhh.no" target="_blank">Roger.Bivand@nhh.no</a><br>
<a href="http://orcid.org/0000-0003-2392-6140" rel="noreferrer" target="_blank">http://orcid.org/0000-0003-2392-6140</a><br>
<a href="https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en" rel="noreferrer" target="_blank">https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en</a><br>
<a href="http://depsy.org/person/434412" rel="noreferrer" target="_blank">http://depsy.org/person/434412</a><br>
_______________________________________________<br>
grass-stats mailing list<br>
<a href="mailto:grass-stats@lists.osgeo.org" target="_blank">grass-stats@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-stats" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-stats</a></blockquote></div><br></div></div>