Skip to content

grass-R (?)

2 messages · Massimo Di Stefano, Thomas Adams

#
i'm trying to use some tutorial for grass-R

i've installed all the spatial packages, but after the command :

G <- gmeta6()

i've his error :

 > library(spgrass6)
 > G <- gmeta6()
sh: line 1: g.region: command not found
Errore in if (is.na(projstr)) uprojargs <- projstr else uprojargs <-  
paste(unique(unlist(strsplit(projstr,  :
	l'argomento ha lunghezza zero
sh: line 1: g.proj: command not found
 >


can you help me?
Massimo.
#
Massimo,

Did you start R from the GRASS prompt in the GRASS term window? Such as:

Mapset <teaiii> in Location <ohrfc>

GRASS 6.1.cvs (ohrfc) > R

R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.1  (2005-12-20 r36812)
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Previously saved workspace restored]

 > library(spgrass6)
Loading required package: sp
Loading required package: maptools
Loading required package: foreign
 > G<- gmeta6()
 >

I hope this helps.

Regards,
Tom
On Apr 12, 2006, at 7:08 AM, epifanio epi wrote: