An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20131126/2c13a3e8/attachment.pl>
Linking R/spgrass6 to OSGEO4W GRASS GIS installation
3 messages · Ralf Schäfer, Bernd Vogelgesang, Alex Mandel
2 days later
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.
On 11/29/2013 09:17 AM, geobernadotte wrote:
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
Forwarding to the OSGeo4w list so we can put it on our wiki. trac.osgeo.org/osgeo4w Thanks, Alex