[GRASS-stats] Using GRASS addons in R on Windows
Paulo van Breugel
p.vanbreugel at gmail.com
Wed Jan 13 11:04:45 PST 2016
On 13-01-16 18:11, Helmut Kudrnovsky wrote:
>>> library(rgrass7)
>>> initGRASS("/usr/local/grass7", home=tempdir())
>> sh: 1: g.gisenv: not found
>> sh: 1: g.gisenv: not found
>> sh: 1: g.gisenv: not found
>> sh: 1: g.gisenv: not found
>> sh: 1: g.gisenv: not found
>> sh: 1: g.version: not found
>> Error in system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), :
>> error in running command
> just a quick test on windows here:
>
>> library(rgrass7)
> Lade nötiges Paket: sp
> Lade nötiges Paket: XML
> GRASS GIS interface loaded with GRASS version: (GRASS not running)
>
>> initGRASS("C:/Program Files/GRASS GIS 7.1.svn", home=tempdir())
> gisdbase C:/Users/xxxxx~1/AppData/Local/Temp/Rtmpk93Gnb
> location file55c44229c0
> mapset file55c5711580b
> rows 1
> columns 1
> north 1
> south 0
> west 0
> east 1
> nsres 1
> ewres 1
> projection NA
>
> is your GRASS really living in /usr/local/grass7 ?
You're right, sorry, it should have been
"/usr/local/grass7/grass-7.1.svn". Now I get:
> initGRASS("/usr/local/grass7/grass-7.1.svn", home=tempdir())
gisdbase /tmp/Rtmp11YxrX
location file17b23d9387e8
mapset file17b239be5145
rows 1
columns 1
north 1
south 0
west 0
east 1
nsres 1
ewres 1
projection NA
Working with addons now work as well. So for Ubuntu 14.04 and GRASS 7.1
compiled from trunk I can now confirm it works.
Thanks Helmut for the follow up and of course big thanks to Roger Bivand
for new version of rgrass7!
Best wishes
Paulo
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-GRASS-addons-in-R-on-Windows-tp5244411p5245064.html
> Sent from the Grass - Stats mailing list archive at Nabble.com.
> _______________________________________________
> grass-stats mailing list
> grass-stats at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-stats
More information about the grass-stats
mailing list