<div dir="auto">You first need to type:<div dir="auto">use_sp()</div><div dir="auto"><br></div><div dir="auto">Then, read the raster from grass. For vector maps on the other hand, you can either set:</div><div dir="auto"><br></div><div dir="auto">use_sp()</div><div dir="auto"><br></div><div dir="auto">or</div><div dir="auto"><br></div><div dir="auto">use_sf()</div><div dir="auto"><br></div><div dir="auto">before the import.</div><div dir="auto"><br></div><div dir="auto">Best,</div><div dir="auto">Vero</div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 5 dic. 2019 15:20, Thomas Adams <<a href="mailto:tea3rd@gmail.com">tea3rd@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Jackson,</div><div><br></div><div>Did you first invoke R in your GRASS terminal window, then, at the R prompt:<br></div><div><br></div><div>library(rgrass7)</div><div><br></div><div>Tom<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 1:03 PM Jackson Rodrigues <<a href="mailto:jacksonmrodrigues@gmail.com" target="_blank" rel="noreferrer">jacksonmrodrigues@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font size="4" face="arial, sans-serif">Dear all,</font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif"><br></font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif">I am trying to work with grass7 in R but I got the following error:</font></div><div class="gmail_default" dir="auto"><span style="font-size:large"><font face="arial, sans-serif"><br></font></span></div><div class="gmail_default" dir="auto"><font face="arial, sans-serif"><span style="font-size:large">Error in rgrass7::writeRAST(raster_</span><span style="font-size:large">image, "raster_image", flags = c("overwrite")) : n</span><span style="font-size:large">o stars support yet</span><br></font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif"><br></font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif">Could anyone give me a support on this issue?</font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif"><br></font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif">I have searched for it elsewhere but no answer found so far.</font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif"><br></font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif">Reproducible exemple below from Rbloggers</font></div><div class="gmail_default" dir="auto"><font size="4" face="arial, sans-serif"><br></font></div><div class="gmail_default"><font size="4" face="arial, sans-serif"><i>#####################</i></font></div><div class="gmail_default"><font size="4" face="arial, sans-serif"><i>library(raster)</i></font></div><font size="4" face="arial, sans-serif"><i><br>raster_image <- raster::raster(system.file("external/test.grd", package = "raster"))<br>raster_image <- as(raster_image, "SpatialGridDataFrame")<br>plot(raster_image)<br><br>loc <- rgrass7::initGRASS("C:/Program Files/GRASS GIS 7.4.4", home = tempdir(), override = TRUE)<br><br>rgrass7::writeRAST(raster_image, "raster_image", flags = c("overwrite"))<br>#<span class="gmail_default"></span>Error in rgrass7::writeRAST(raster_image, "raster_image", flags = c("overwrite")) :<br>#<span class="gmail_default"></span>no stars support yet</i></font><div class="gmail_default"><font size="4"><font face="arial, sans-serif"><i> ##################### </i></font><font face="times new roman, serif"> </font><br clear="all"></font></div><div style="font-family:Arial,Helvetica,sans-serif"><font size="4"><br></font></div><div dir="auto" style="font-family:Arial,Helvetica,sans-serif"><font size="4">Best regards,</font></div><div dir="auto" style="font-family:Arial,Helvetica,sans-serif"><font size="4"><br></font></div><div dir="auto" style="font-family:Arial,Helvetica,sans-serif"><font size="4">Jackson</font></div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><br></p></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
grass-stats mailing list<br>
<a href="mailto:grass-stats@lists.osgeo.org" target="_blank" rel="noreferrer">grass-stats@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-stats" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-stats</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Thomas E Adams, III<div>1724 Sage Lane</div><div>Blacksburg, VA 24060</div><div><a href="mailto:tea3rd@gmail.com" target="_blank" rel="noreferrer">tea3rd@gmail.com</a> (personal)</div><div><a href="mailto:tea@terrapredictions.org" target="_blank" rel="noreferrer">tea@terrapredictions.org</a> (work)<br></div><div><br></div><div>1 (513) 739-9512 (cell)</div><div><br></div></div></div></div></div></div>
_______________________________________________<br>
grass-stats mailing list<br>
<a href="mailto:grass-stats@lists.osgeo.org" target="_blank" rel="noreferrer">grass-stats@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-stats" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-stats</a></blockquote></div>