[GRASS-stats] GRASS-R connection in Windows

Helmut Kudrnovsky hellik at web.de
Fri Sep 24 17:03:22 EDT 2010


Hi Antonio,

>I've been using WinGRASS for a while but now I would like to run a few 
>functions from R using spgrass (interface between GRASS and R).
>I know that this is possible and stable in Linux but I'm not sure for 
>Windows. Has anyone tried?
>Thanks
>Antonio

at the moment there is following for a Grass-R-connection in implemented in WinGrass64

(1) the WinGrass64-installer searches during installation for a installed R and writes - if found - the
R-installation-path to %PATH% in the grass64.bat-starting script
(see http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi#L660)

(2) you can start "Grass-command-line" - it's a windows-command-line, not a msys-rxvt-terminal (you can find this
starting option under Programs -> Grass64 -> Grass command line; but not as a desktop icon)

with this starting option you start a Grass-session in the good old text mode. if you type R in the
command line, then you start R inside a Grass-session like in Linux. see down:

Welcome to GRASS 6.4.0 (2010)

GRASS homepage:                          http://grass.osgeo.org/
This version running thru:               Windows Command Shell (cmd.exe)
When ready to quit enter:                exit
Help is available with the command:      g.manual -i
See the licence terms with:              g.version -c

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. Alle Rechte vorbehalten.

GRASS 6.4.0 (wgs84gc)> R

R version 2.11.1 (2010-05-31)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

> q()
Workspace sichern? [y/n/c]: n

GRASS 6.4.0 (wgs84gc)>

what I have in mind (but no time at the moment to improve), see:

Ticket #1103 (new enhancement) WinGrass64 - windows-commandline not released
Ticket #1149 (new enhancement) WinGrass - load R-installation-path dynamically into PATH

with #1103 a Grass-session with wxGui, command-line and R inside a Grass-session would
be possible (as already does in WinGrass7)

with #1149 Wingrass would recognize also an upgraded R-installation (which does not at the moment)

best regards
Helmut
___________________________________________________________
Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-stats/attachments/20100924/e5a522b3/smime.bin


More information about the grass-stats mailing list