[R-sig-Geo] Interfacing R with GRASS from R - Windows XP

Alex Mandel tech_dev at wildintellect.com
Fri Mar 12 02:04:14 CET 2010


http://trac.osgeo.org/osgeo4w/

On 03/11/2010 04:12 PM, Debabrata Midya wrote:
> Dennis,
>  
> Thanks for your reply.
>  
> May I request you to assist me in the followings:
>  
> 1. Where can I get a copy of 32-bit GRASS on Windows XP.
>  
> 2. I s there any tutorial to start with R and GRASS,
>  
>     - To interface R with GRASS from R
>  
>     - To interface R with GRASS from GRASS
>  
> Once again, thank you very much for the time you have given.
> 
> I am looking forward for your reply.
> 
> Regards,
> 
> Deb
> 
>>>> Dennis Murphy <djmuser at gmail.com> 12/03/2010 2:41 am >>>
> Hi:
> 
> Is it possible you have a 64-bit GRASS installation and a 32-bit R?
> If that's the case, you might need to install 32-bit GRASS; 32-bit software
> doesn't usually play nice with 64-bit software, and R falls in that set.
> 
> HTH,
> Dennis
> 
> On Wed, Mar 10, 2010 at 4:45 PM, Debabrata Midya <Debabrata.Midya at services.nsw.gov.au> wrote:
> 
> 
> Dear OSGeo users,
> 
> 
> Thanks in advance.
> 
> I am Deb, Statistician at NSW Department of Services, Technology & Administration, Sydney, Australia.
> 
> I am new to this Group.
> 
> I want to interface R with GRASS from R.
> 
> I have faced problem to do so. I have provided the steps below the way I have tried.
> 
> 1. I am using R-2.10.1 and GRASS-64-SVN on Windows XP.
> 
> I have installed R and GRASS (WinGRASS-6.4.0SVN-r40852-1-Setup.exe)
> 
> I have provided the path of GRASS (F:\GRASS-64-SVN) to access to bin and lib directories.
> 
> 2. The result of executing this R command is given below:
> 
>> library(spgrass6)
> Loading required package: sp
> Loading required package: rgdal
> Geospatial Data Abstraction Library extensions to R successfully loaded
> Loaded GDAL runtime: GDAL 1.7.1, released 2010/02/08
> Path to GDAL shared files: F:/R-2.10.1/library/rgdal/gdal
> Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
> Path to PROJ.4 shared files: F:/R-2.10.1/library/rgdal/proj
> Loading required package: XML
> GRASS GIS interface loaded with GRASS version: (GRASS not running)
> 
> 3. The result of gmeta6() is given below:
> 
>> G <- gmeta6()
> Error in system(cmd0, intern = TRUE) : g.region.exe not found
> In addition: Warning message:
> In list.files(paste(Sys.getenv("GISBASE"), "bin", sep = "/"), pattern = ".bat$") :
> list.files: '/bin' is not a readable directory
> Error in parseGRASS(cmd) : g.region not found
> 
> 4. I have also given my session Info:
> 
>> sessionInfo()
> R version 2.10.1 (2009-12-14)
> i386-pc-mingw32
> 
> locale:
> [1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
> [5] LC_TIME=English_Australia.1252
> 
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
> 
> other attached packages:
> [1] spgrass6_0.6-15 XML_2.6-0 rgdal_0.6-25 sp_0.9-60
> 
> loaded via a namespace (and not attached):
> [1] grid_2.10.1 lattice_0.17-26 tools_2.10.1
> 
> Once again, thank you very much for the time you have given.
> 
> I am looking forward for your reply.
> 
> Regards,
> 
> 
> Deb
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch 
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo 
>



More information about the R-sig-Geo mailing list