[GRASS-stats] R interface to grass 7.1

Rainer M Krug Rainer at krugs.de
Thu Jun 4 11:47:55 PDT 2015


Roger Bivand <Roger.Bivand at nhh.no> writes:

> Hi,
>
> This is:
>
> http://trac.osgeo.org/grass/wiki/GSoC/2015#Neweasy-to-usecommandlineinterfaceforGRASSGIS
>
> is it? Did it get accepted - I don't see this on:
>
> http://www.google-melange.com/gsoc/org2/show/google/gsoc2015/osgeo
>
> and think that only improved metadata got funded.

This is true as far as I know, but it seems that Vaclac took it in
his own hands to code the initial stages and he checked it into the
GRASS 7.1 source.

I installed GRASS 7.1 from source using homebrew (the formula is in a
pending pull request) and I could execute the examples fine.

> Do we know what the actual status is on this?

The

,----
| grass71 MAPSET --exec THE GRASS COMAND WITH WHATEVER COMES NOW
`----

is working, but I don't know if it has been tested a lot. For testing,
the sp collection could help as there are already examples which one
could run.

Otherwise - no idea - but it seems to be going forward.

> I'd feel that this could be a variant in rgrass7 if it becomes
> available,

Yes - some changes and getting rid of the initialisation of the GRASS
session, and only provide the path to the grass71 executable.

> but I'm not sure how it would expose the interface description.

--8<---------------cut here---------------start------------->8---
grass71 --exec g.list --interface-description
--8<---------------cut here---------------end--------------->8---

I just tried it out.

or, maybe safer,

--8<---------------cut here---------------start------------->8---
grass71 PATH/TO/MAPSET --exec g.list --interface-description
--8<---------------cut here---------------end--------------->8---

This is only the first stage, and Vaclac seems to be very much open to
suggestions and discussion on which direction this should go.

The discussion is on grass-user.

It seems that you are planning to move the sp packages to github - is
this true?

Cheers,

Rainer

>
> Best wishes,
>
> Roger
>
> On Thu, 4 Jun 2015, Rainer M Krug wrote:
>
>> Hi
>>
>> I guess you have seen the announcement from Vaclac Petras about the new
>> command line interface to R. This sounds very exciting and I would like
>> to start playing with the R-GRASS 7.1 interface. What would be the best
>> approach concerning git / svn? should I setup my own github for this or
>> should I slot in one of the spgrass repositories?
>>
>> Thanks,
>>
>> Rainer
>>
>>
>>
>> http://permalink.gmane.org/gmane.comp.gis.grass.user/51680
>>
>>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-stats/attachments/20150604/a9312224/attachment.pgp>


More information about the grass-stats mailing list