<div dir="ltr"><div>Hi,<br><br></div><div>today we used "rgrass7" on Windows (and I made some tests on Linux, too).<br><br></div><div>I was wondering about a few warnings which might be suppressed to avoid user confusion:<br></div><div><br></div><div><br></div>######## Windows: calling GRASS 7.1 from R session<br><div><div class="gmail_quote"><div dir="ltr"><br clear="all"><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 messages:</div><div>1: package ‘rgrass7’ was built under R version 3.2.2 </div><div>2: package ‘sp’ was built under R version 3.2.2 </div><div>3: package ‘XML’ was built under R version 3.2.2 <br><br></div><div>> initGRASS(gisBase = "C:/OSGeo4W/apps/grass/grass-7.1.svn",</div><div>+ gisDbase = "C:/Users/marissa/GRASSdata/",</div><div>+ location = "CA", mapset = "Aegypti")</div><div>Error in initGRASS(gisBase = "C:/OSGeo4W/apps/grass/grass-7.1.svn", gisDbase = "C:/Users/marissa/GRASSdata/",  : </div><div>  A GISRC file already exists; to override, set override=TRUE</div><div><br><br></div><div>==> the last sentence is not quite clear. Perhaps change to<br><br>"A GISRC file already exists (the GRASS GIS mapset is already in use); to override, set override=TRUE"</div><div><br><br></div><div>> initGRASS(gisBase = "C:/OSGeo4W/apps/grass/grass-7.1.svn",</div><div>+ gisDbase = "C:/Users/marissa/GRASSdata/",</div><div>+ location = "CA", mapset = "Aegypti",</div><div>+ override=TRUE)</div><div>gisdbase    C:/Users/marissa/GRASSdata/ </div><div>location    CA </div><div>mapset      Aegypti </div><div>rows        265 </div><div>columns     230 </div><div>north       452000 </div><div>south       -608000 </div><div>west        -376000 </div><div>east        544000 </div><div>nsres       4000 </div><div>ewres       4000 </div><div>projection  +proj=aea +lat_1=34 +lat_2=40.5 +lat_0=0 +lon_0=-120 +x_0=0 +y_0=-4000000 +no_defs +a=6378137 +rf=298.257222101</div><div>+towgs84=0.000,0.000,0.000 +to_meter=1 </div><div>Warning message:</div><div>In dir.create(gisDbase) : 'C:\Users\marissa\GRASSdata' already exists<br><br></div><div>==> the last warning is not clear to me. If I set override=TRUE, I refer to the mapset's gislock, hence the dir.create(gisDbase should not be done at all. Is it a bug?<br></div><div><br><br></div><div>############## Linux<br><br>> ncdata <- readRAST("elevation")<br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br><br></div><div>==> these warning make probably sense in a GRASS session but IMHO here less. They could be suppressed with --q in the respective GRASS module call.<br><br></div><div><br>Creating BIL support files...<br>Exporting raster as floating values (bytes=4)<br> 100%<br>Warning messages:<br>1: In execGRASS("<a href="http://r.info" target="_blank">r.info</a>", flags = "g", map = vname[i], intern = TRUE,  :<br>  The command:<br><a href="http://r.info" target="_blank">r.info</a> -g map=elevation<br>produced at least one warning during execution:<br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br><br></div><div>==> here it is, I suggest to use <a href="http://r.info">r.info</a> --q<br></div><div><br>2: In execGRASS("<a href="http://r.info" target="_blank">r.info</a>", flags = "r", map = vname[i], intern = TRUE,  :<br>  The command:<br><a href="http://r.info" target="_blank">r.info</a> -r map=elevation<br>produced at least one warning during execution:<br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br><br></div><div>==> same thing<br></div><div><br>3: In execGRASS("r.out.bin", flags = rOutBinFlags, input = vname[i],  :<br>  The command:<br>r.out.bin -b -f input=elevation output=/home/neteler/grassdata/nc_spm_08_grass7/user1/.tmp/pgis_north/elevation bytes=4 null=54<br>produced at least one warning during execution:<br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br>WARNING: 'cellhd/elevation' was found in more mapsets (also found in<br>         <PERMANENT>)<br>WARNING: Using <elevation@user1><br><br></div><div>==> same thing<br></div><div><br>Creating BIL support files...<br>Exporting raster as floating values (bytes=4)<br> 100%<br><br></div></div></div></div>thanks<br></div><div>Markus<br></div></div>