<div dir="ltr"><div>Hi Rainer,<div><br></div><div>I used following commands and got following errors and output (using Rstudio). I also included now the output from sessionInfo() after loading "rgrass7":</div><div><br></div><div><div>> library("rgrass7")</div><div>Loading required package: sp</div><div>Loading required package: XML</div><div>GRASS GIS interface loaded with GRASS version: (GRASS not running)</div><div>Warning message:</div><div>package ‘XML’ was built under R version 3.4.1 </div><div>> #<a href="https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7">https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7</a></div><div>> </div><div>> sessionInfo()</div><div>R version 3.4.0 (2017-04-21)</div><div>Platform: x86_64-apple-darwin15.6.0 (64-bit)</div><div>Running under: macOS Sierra 10.12.6</div><div><br></div><div>Matrix products: default</div><div>BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib</div><div>LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib</div><div><br></div><div>locale:</div><div>[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8</div><div><br></div><div>attached base packages:</div><div>[1] stats graphics grDevices utils datasets methods base </div><div><br></div><div>other attached packages:</div><div>[1] rgrass7_0.1-9 XML_3.98-1.9 sp_1.2-4 </div><div><br></div><div>loaded via a namespace (and not attached):</div><div> [1] minqa_1.2.4 MASS_7.3-47 compiler_3.4.0 Matrix_1.2-10 tools_3.4.0 Rcpp_0.12.11 splines_3.4.0 </div><div> [8] nlme_3.1-131 grid_3.4.0 nloptr_1.0.4 lme4_1.1-13 lattice_0.20-35</div><div><br></div><div>> # initialisation and the use of North Carolina sample dataset</div><div>> initGRASS(gisBase = "/Applications/GRASS-7.3.app", home = tempdir(), </div><div>+ gisDbase = "/Users/Johannes_Radinger/Documents/GRASS-GIS/",</div><div>+ location = "nc_spm_08_grass7", mapset = "PERMANENT", SG="elevation",</div><div>+ override=TRUE)</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.version: command not found</div><div>Error in system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), : </div><div> error in running command</div></div><div><br></div><div>######</div><div><br></div><div>cheers, </div><div>Johannes</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 7, 2017 at 11:36 AM, Rainer Krug <span dir="ltr"><<a href="mailto:rainer_krug@icloud.com" target="_blank">rainer_krug@icloud.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi<div><br></div><div>How did you run these commands from R, which error did you get?</div><div><br></div><div>Could you provide a transcript of your errors?</div><div><br></div><div>Rainer</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On 7 Sep 2017, at 10:04, Johannes Radinger <<a href="mailto:johannesradinger@gmail.com" target="_blank">johannesradinger@gmail.com</a>> wrote:</div><br class="m_1115039393101794419Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I try to run GRASS73 within R (actually R-studio) using the rgrass7 library on MacOS 10.12.6. I followed the instructions stated in the wiki (<a href="https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7" target="_blank">https://grasswiki.osgeo.org/<wbr>wiki/R_statistics/rgrass7</a>), however some of the commands were not working for me. For instance, "grass70 --config path" (also with grass73 etc) does not work here, however I found the path to the application which is: /Applications/GRASS-7.3.<wbr>app; i.e. using "open /Applications/GRASS-7.3.<wbr>app" opens my grass installation.</div><div><br></div><div>So I tried to initialize GRASS (North Carolina location - PERMANENT) from within R using the initGRASS() command:</div><div><br></div><div><div>initGRASS(gisBase = "/Applications/GRASS-7.3.app", home = tempdir(), </div><div> gisDbase = "/Users/Johannes_Radinger/<wbr>Documents/GRASS-GIS/",</div><div> location = "nc_spm_08_grass7", mapset = "PERMANENT", SG="elevation",</div><div> override=TRUE)</div></div><div><br></div><div>However I get following error(s):</div><div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.gisenv: command not found</div><div>sh: g.version: command not found</div><div>Error in system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), : </div><div> error in running command</div></div><div><br></div><div>So what I am doing wrong? Do I miss some arguments in my command or is this related to my Mac environment? Any suggestion I should try to solve that problem?</div><div><br></div><div>Thanks and best regards,</div><div>Johannes</div><div><br></div></div></div></div>
______________________________<wbr>_________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-user</a></div></blockquote></div><br></div></div></blockquote></div><br></div>