[GRASS-stats] Using GRASS addons in R on Windows

Helmut Kudrnovsky hellik at web.de
Tue Jan 12 00:50:49 PST 2016


>Wrong target, please use:
>http://win-builder.r-project.org/s90s00N7rhyt/rgrass7_0.1-4.zip

> utils:::menuInstallLocal()
Paket ‘rgrass7’ erfolgreich ausgepackt und MD5 Summen abgeglichen

GRASS version: 7.1.svn                                                          
GRASS SVN revision: 67543                                                       
Build date: 2016-01-11                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 1.11.3                                                                    
PROJ.4: 4.9.2                                                                   
GEOS: 3.5.0                                                                     
SQLite: 3.7.17                                                                  
Python: 2.7.5                                                                   
wxPython: 2.8.12.1                                                              
Platform: Windows-7-6.1.7601-SP1    

> library(rgrass7)
Loading required package: sp
Loading required package: XML
GRASS GIS interface loaded with GRASS version: GRASS 7.1.svn (2016)
and location: nc_spm_08_grass7

--------------
binary addon (r.stream.order)

> execGRASS("r.watershed", elevation="elevation", threshold=10000,
> accumulatio$
SECTION 1a (of 5): Initiating Memory.
SECTION 1b (of 5): Determining Offmap Flow.
 100%
SECTION 2: A* Search.
 100%
SECTION 3a: Accumulating Surface Flow with MFD.
 100%
SECTION 3b: Adjusting drainage directions.
 100%
SECTION 4: Watershed determination.
 100%
SECTION 5: Closing Maps.
 100%
>

> execGRASS("r.stream.order", stream_rast="mystreams",
> direction="myflowdir", $
All in RAM calculation...
Reading raster map <mystreams>...
 100%
Reading raster map <myflowdir>...
 100%
Finding nodes...
Calculating Strahler's stream order...
Writing output raster maps...
--------------
python addon (r.roughness.vector):

> execGRASS("r.slope.aspect", elevation="elevation", slope="myslope",
> aspect="$
 100%
Aspect raster map <myaspect> complete
Slope raster map <myslope> complete

> execGRASS("r.roughness.vector", elevation="elevation", slope="myslope",
> aspe$
Error in system(cmd0, intern = TRUE) : 'r.roughness.vector.exe' not found
Error in parseGRASS(cmd, legacyExec = legacyExec) :
  r.roughness.vector not found
--------------
python GRASS script (r.reclass.area):

> execGRASS("r.reclass.area", input="zipcodes",
> output="zipcode_larger2000ha",$
Error in system(cmd0, intern = TRUE) : 'r.reclass.area.exe' not found
Error in parseGRASS(cmd, legacyExec = legacyExec) :
  r.reclass.area not found
--------------

it seems to be the same behaviour: 

binary addons (exe living in e.g.
C:\Users\xy\AppData\Roaming\GRASS7\addons\bin) are found.
python scripts (with related bat-files in e.g.
C:\Users\xy\AppData\Roaming\GRASS7\addons\bin or in e.g. C:\Program
Files\GRASS GIS 7.1.svn\bin) are not found as it is searched for e.g.
r.reclass.area.exe (see above).



-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-GRASS-addons-in-R-on-Windows-tp5244411p5244654.html
Sent from the Grass - Stats mailing list archive at Nabble.com.


More information about the grass-stats mailing list