<div dir="ltr">I have a large raster (~2 GB) that I'm trying to export to grass from R (3.4.1) using the rgrass7 (0.1-9) library:<br><br>    writeRAST(<br>        as(raster("dinf_slope.tif"),"SpatialGridDataFrame"), <br>        "slope.r", <br>        flags=c("overwrite")<br>    )<br><br><div>The operation fails and throws the following error:<br><br>    Error in writeBin(z, con = f, size = sz) :<br><br>    only 2^31-1 bytes can be written in a single writeBin() call<br><br>I get the same error if I attempt to export a SpatialGridDatatFrame object directly, so I don't believe the problem is with the raster library.<br><br>I receive the same error in Ubuntu and Windows 10. <br><br>How can I use writeRAST to export large rasters to grass?<br><br>Cross posted to stack exchange (<a href="https://goo.gl/5bBmV3">https://goo.gl/5bBmV3</a>)</div></div>