[R-sig-Geo] Problems with spgrass6 and initGRASS in Fedora 14

Julian Burgos jmburgos at uw.edu
Thu Oct 13 16:36:45 CEST 2011


Ok, so I run the initGRASS() and gmeta6() functions line by line to
try to isolate the problem.

First, the following line gives me an error:
> SYS <- get("SYS", envir = .GRASS_CACHE)
Error in get("SYS", envir = .GRASS_CACHE) :
  object '.GRASS_CACHE' not found

I can get the function running f I fix the value of SYS to "unix" and
change all environment references to

envir=spgrass6:::.GRASS_CACHE.

But I get the following error when running the gmeta6() function:

>    gisenv <- execGRASS("g.gisenv", flags = "n", intern = TRUE,
+         ignore.stderr = ignore.stderr)
Command: g.gisenv
Description: Outputs and modifies the user's current GRASS variable settings.
Keywords: general
Parameters:
  name: get, type: string, required: no, multiple: no
  keydesc: VARIABLE, keydesc_count: 1
[GRASS variable to get]
  name: set, type: string, required: no, multiple: no
  keydesc: "VARIABLE=value", keydesc_count: 1
[GRASS variable to set]
  name: store, type: string, required: no, multiple: no
  default: gisrc
[Where GRASS variable is stored]
Flags:
  name: verbose [Verbose module output] {FALSE}
  name: quiet [Quiet module output] {FALSE}
Error in doGRASS(cmd, flags = flags, ..., parameters = parameters,
echoCmd = echoCmd) :
  Invalid flag value: n

I'll keep looking...

On Thu, Oct 13, 2011 at 1:28 PM, Julian Burgos <jmburgos at uw.edu> wrote:
> Dear list,
>
> I'm taking my first steps in running GRASS from within R... but I'm
> not getting very far.  When running the initGRASS function I get the
> following error:
>
>> initGRASS(gisBase="/usr/lib64/grass-6.3.0",home = tempdir(), gisDbase = "/home/julian/Documents/GIS/GRASSdata/", location = "IcelandMercator", mapset = "Lons10m",override=TRUE)
> Command: g.gisenv
> Description: Outputs and modifies the user's current GRASS variable settings.
> Keywords: general
> Parameters:
>  name: get, type: string, required: no, multiple: no
>  keydesc: VARIABLE, keydesc_count: 1
> [GRASS variable to get]
>  name: set, type: string, required: no, multiple: no
>  keydesc: "VARIABLE=value", keydesc_count: 1
> [GRASS variable to set]
>  name: store, type: string, required: no, multiple: no
>  default: gisrc
> [Where GRASS variable is stored]
> Flags:
>  name: verbose [Verbose module output] {FALSE}
>  name: quiet [Quiet module output] {FALSE}
> Error in doGRASS(cmd, flags = flags, ..., parameters = parameters,
> echoCmd = echoCmd) :
>  Invalid flag value: n
>>
>
> I am running R 2.13.1 and GRASS 6.3.0 on Fedora 14 (64 bits).
>
> Any ideas?
>
> Julian
>
> --
> Julian Mariano Burgos
> Hafrannsóknastofnunin/Marine Research Institute
> Skúlagata 4, 121 Reykjavík, Iceland
> Sími/Telephone : +354-5752037
> Bréfsími/Telefax:  +354-5752001
> Netfang/Email: julian at hafro.is, jmburgos at uw.edu
>



-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: julian at hafro.is, jmburgos at uw.edu



More information about the R-sig-Geo mailing list