Details Ticket 1783


Comment | Reply | Take | Open


Serial Number 1783
Subject GRASS-R interface: list.GRASS needs some work
Area bug
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status resolved
Last User Contact Wed Jul 30 11:03:27 2003 (5 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Jul 30 11:03:30 2003 (5 yr ago)
Created Mon Apr 7 09:17:59 2003 (5 yr ago)

Transaction History Ticket 1783


Mon, Apr 7 2003 09:17:59    Request created by guest  
Subject: GRASS-R interface: list.GRASS needs some work

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.0+ / 0.2-8

Hi - 

From within the GRASS/R-stats interface & leics mapset:

> system("g.list rast")
----------------------------------------------
raster files available in mapset user1:
slope

raster files available in mapset PERMANENT:
contours  image    plant  rail	 segment  spillage  urban
crash	  landcov  popln  roads  source   topo	    water

----------------------------------------------
> print(list.GRASS(type="rast"))
 [1] "slope"      "raster"     "files"      "available"  "in"        
 [6] "mapset"     "PERMANENT:" "contours"   "image"      "plant"     
[11] "rail"       "segment"    "spillage"   "urban"      "crash"     
[16] "landcov"    "popln"      "roads"      "source"     "topo"      
[21] "water"     


So it interprets the "raster files available in mapset PERMANENT:" as 6 extra
maps.


thanks,
Hamish
Wed, Jun 4 2003 22:58:23    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 4 Jun 2003 22:58:20 +0200
From Markus Neteler <neteler@itc.it>
To Roger Bivand <Roger.Bivand@nhh.no>
Cc grass-bugs@intevation.de
Subject Re: [STATSGRASS] R: east() north() - [Bug #1783]
Message-ID <20030604225820.C3828@itc.it>
References <20030429103904.E10897@itc.it> <Pine.LNX.4.44.0306031304520.17152-100000@reclus.nhh.no>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <Pine.LNX.4.44.0306031304520.17152-100000@reclus.nhh.no>; from Roger.Bivand@nhh.no on Tue, Jun 03, 2003 at 02:22:20PM +0200
X-Spam-Status No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.44
X-Spam-Level
Roger,
(cc bugtracker)

On Tue, Jun 03, 2003 at 02:22:20PM +0200, Roger Bivand wrote:
> Markus,
> 
> On Tue, 29 Apr 2003, Markus Neteler wrote:
> 
> > some days ago a GRASS-R bug was posted in RT:
> > http://intevation.de/rt/webrt?serial_num=1783&display=History
> > 
> > I just wanted to mention that in case you are not aware of it.
> > 
> I've submitted a revision to CRAN removing the offending list.GRASS() 
> function, which was only ever used simplistically by rast.get(), 
> rast.put() and sites.get() and sites.put() only in interpreted mode. It is
> actually still there but hidden, so users don't see it, and I guess nobody
> will miss it. system("g.list") is so much easier, and gives direct access,
> which can then be used by copy&paste.

Thanks for the update, I'll update GRASS/R tomorrow.

> I checked 1) that list.GRASS() isn't used in your book, and

So we also won't do it in the second edition (planned).

>  2) that it is seriously difficult to retrieve the 
> names of elements using the code in general/manage other than as output to
> stdout. I'll look at hacking it through list.files(), though, if anybody 
> wants it back. With the get.GISDBASE(), get.LOCATION(), and get.mapsets(),
> all the pieces are there without writing new code. Have you ever used 
> list.GRASS() directly?

Honestly no: being a GRASS user for years, I am probably closer to
system calls than using "new" R commands.
Maybe you just want for comments before hacking list.files().
 
Best wishes,

 Markus


Thu, Jun 5 2003 11:36:58    Mail sent by hbowman  
> > I've submitted a revision to CRAN removing the offending list.GRASS() 
> Thanks for the update, I'll update GRASS/R tomorrow.
> 
> > I checked 1) that list.GRASS() isn't used in your book, and


I came across this while working through the on-line tutorial:
statsgrass/grass_r_interface.html

in the "Useful commands:" section.


So that should be updated as well, although to what, I wouldn't know.


regards,
Hamish
Wed, Jul 30 2003 11:03:27    Mail sent by mneteler  
Fixed (the R intro text is in my private CVS)

Markus
Wed, Jul 30 2003 11:03:31    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request