Hi Deb,

I suggest you install the OSGeo4W version of GRASS, start MSYS, start
msys/grass,
and inside grass you call rgui with & to run R in background. So you need to
be sure the your Rgui.exe path are in the PATH environment of windows. After
that you can try run your script again.

Cheers

milton

On Wed, Mar 10, 2010 at 7:45 PM, Debabrata Midya <
Debabrata.Midya@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
>
>
> *************************************************************************************
>
> This email message, including any attached files, is confidential and
> intended solely for the use of the individual or entity to whom it is
> addressed.
>
> The Department of Services, Technology and Administration prohibits the
> right to publish, copy, distribute or disclose any information contained in
> this email, or its attachments, by any party other than the intended
> recipient. If you have received this email in error please notify the
> sender
> and delete it from your system.
>
> No employee or agent is authorised to conclude any binding agreement
> on behalf of the Department of Services, Technology and Administration
> by email. The views or opinions presented in this email are solely those of
> the author and do not necessarily represent those of the Department,
> except where the sender expressly, and with authority, states them to be
> the views of the Department of Services, Technology and Administration.
>
> The Department of Services, Technology and Administration accepts no
> liability for any loss or damage arising from the use of this email and
> recommends that the recipient check this email and any attached files for
> the presence of viruses.
>
>
> *************************************************************************************
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

