<div dir="ltr"><div>Hi Helli, Roger<br></div><div><br></div><div>No, I just opened R console (installed outside OSGeo4W) and from there, I tried to init grass. <br></div><div>Should I open R from OSGeo4W command console and then init grass there? Is that the workflow?</div><div><br></div><div>best, <br></div><div>Vero<br></div></div><br><div class="gmail_quote"><div dir="ltr">El dom., 16 sept. 2018 a las 16:25, Helmut Kudrnovsky (<<a href="mailto:hellik@web.de">hellik@web.de</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Veronica Andreo wrote<br>
> Hello,<br>
> <br>
> I am preparing a one week GRASS GIS course and I mostly expect Windows<br>
> users, so I recommend to install from OSGeo4W that allows to easily<br>
> install<br>
> also QGIS, msys (to get nice bash tricks) and other libraries that are<br>
> then<br>
> needed for some grass add-ons.<br>
> <br>
> The last day of the course, I'll show the connection with R. Now, starting<br>
> R within a grass session works as expected. But I get errors when trying<br>
> to<br>
> initialize GRASS (installed from OSGeo4W) from R console. I am following<br>
> the instructions in the wiki [0]<br>
> <br>
> First, I had to change the slashes from windows type, to linux type<br>
> (because I got:<br>
> Error: '\O' in an unrecognized escape in character string ""C:\O").<br>
> <br>
> After that, I get the following:<br>
> <br>
>> initGRASS(gisBase = 'C:/OSGeo4W64/apps/grass/grass-7.4.0', gisDbase =<br>
> 'C:/Users/RETA/Documents/grassdata', location = 'nc_spm_08_grass7', mapset<br>
> = 'user1', SG='elevation')<br>
> Error in if (!compatible) { : argumento tiene longitud cero<br>
> Además: Warning messages:<br>
> 1: In system(paste("g.dirseps.exe -g", shQuote(Sys.getenv("GISRC"))), :<br>
> comando ejecutado 'g.dirseps.exe -g "junk"' tiene estatus 309<br>
> 2: In system(paste("g.dirseps.exe -g", shQuote(gisDbase)), intern = TRUE)<br>
> :<br>
> comando ejecutado 'g.dirseps.exe -g "C:/Users/RETA/Documents/grassdata"'<br>
> tiene estatus 309<br>
> 3: In dir.create(loc_path) :<br>
> cannot create dir 'NA\nc_spm_08_grass7', reason 'No such file or<br>
> directory'<br>
> 4: In dir.create(paste(loc_path, "PERMANENT", sep = "/")) :<br>
> cannot create dir 'NA\nc_spm_08_grass7\PERMANENT', reason 'No such file or<br>
> directory'<br>
> 5: In dir.create(paste(loc_path, mapset, sep = "/")) :<br>
> cannot create dir 'NA\nc_spm_08_grass7\user1', reason 'No such file or<br>
> directory'<br>
> 6: In system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), :<br>
> comando ejecutado 'g.version.exe' tiene estatus 309<br>
> <br>
> Any hints? I also attach a screenshot with the message that appears (I<br>
> cannot copy/paste the text in that message)<br>
> <br>
> Thanks much in advance!<br>
> Vero<br>
> <br>
> [0] <a href="https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7#GRASS_within_R" rel="noreferrer" target="_blank">https://grasswiki.osgeo.org/wiki/R_statistics/rgrass7#GRASS_within_R</a><br>
> <br>
> _______________________________________________<br>
> grass-stats mailing list<br>
<br>
> grass-stats@.osgeo<br>
<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/grass-stats" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-stats</a><br>
> <br>
> Rgui_2018-09-13_22-19-45.png (73K)<br>
> &lt;<a href="http://osgeo-org.1560.x6.nabble.com/attachment/5378245/0/Rgui_2018-09-13_22-19-45.png&gt" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/attachment/5378245/0/Rgui_2018-09-13_22-19-45.png&gt</a>;<br>
<br>
it's a missing dll.<br>
<br>
Are you invoking R from inside the OSGeo4W command console?<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Stats-f4049448.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Grass-Stats-f4049448.html</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="https://lists.osgeo.org/mailman/listinfo/grass-stats" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-stats</a></blockquote></div>