[R-sig-Geo] Linking R/spgrass6 to OSGEO4W GRASS GIS installation

geobernadotte bernd.vogelgesang at gmx.de
Fri Nov 29 18:17:24 CET 2013


Ralf Schäfer wrote
> Solution:
> Add OSGEO4W/bin to the path to enable access to gdal110.dll
> 
> WPATH <- Sys.getenv("PATH")
> WPATH1 <- paste("C:\\OSGeo4W\\bin", WPATH, sep=";")
> # Note: Users with 64bit installation should put "C:\\OSGeo4W64\\bin"
> #Sys.setenv(PATH=WPATH1)
> initGRASS("C:/OSGeo4W/apps/grass/grass-6.4.3", tempdir(), override=TRUE,
> SG = mwidem_trans2)
> # Note: Users with 64bit installation should put
> C:/OSGeo4W64/apps/grass/grass-6.4.3

You saved my day. Only took me an hour to understand that i have to un-#
Sys.setenv(PATH=WPATH1) from your example ...

I can imagine that this is a problem for quite some people wanting to
utilize GRASS from within R with an OSGEO4W-install. Should find it's way
into some help page maybe...

So thanx for sharing
Cheers
Bernd



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Linking-R-spgrass6-to-OSGEO4W-GRASS-GIS-installation-tp7585204p7585235.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list