[GRASS-stats] GRASS/R interface Vista 64

3 messages Options
Embed this post
Permalink
Sam Veloz

[GRASS-stats] GRASS/R interface Vista 64

Reply Threaded More More options
Print post
Permalink
I am trying to run R from within GRASS. I am running GRASS 6.3.0 with R
2.8.0 on a Vista 64 platform. I am able to start R within GRASS and load
the spgrass6 library fine. However when I try:
  G <- gmeta6()
I get the following error:
Error in system(paste(paste("g.region", .addexe(), sep = ""), "-g3"),  :
   g.region not found

If I run g.region -p in GRASS I get:

projection: 99 (Albers Equal Area)
zone:       0
datum:      nad27
ellipsoid:  clark66
north:      450300
south:      -604700
west:       -373900
east:       540100
nsres:      1000
ewres:      1000
rows:       1055
cols:       914
cells:      964270

I am new to GRASS but have been working with R for a couple of years. Is
there something simple I am missing?
Thanks,
Sam

--
****************************************************
Sam Veloz
Postdoctoral Researcher
Department of Environmental Science and Policy
University of California, Davis
[hidden email]
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand

Re: [GRASS-stats] GRASS/R interface Vista 64

Reply Threaded More More options
Print post
Permalink
On Mon, 17 Nov 2008, Sam Veloz wrote:

> I am trying to run R from within GRASS. I am running GRASS 6.3.0 with R 2.8.0
> on a Vista 64 platform. I am able to start R within GRASS and load the
> spgrass6 library fine. However when I try:
> G <- gmeta6()
> I get the following error:
> Error in system(paste(paste("g.region", .addexe(), sep = ""), "-g3"),  :
>  g.region not found

Thanks. The most likely cause is that the system is not being identified
as a "windows" system. Could you copy the output from your running R
within GRASS of .sessionInfo() and of Sys.getenv() into an RData file
(save()) and pass it to me off-list? The specific test expects
.Platform$OS.type == "windows", and if it isn't, there may be issues. The
other possibility is that Sys.getenv("OSTYPE") isn't known.

Roger

>
> If I run g.region -p in GRASS I get:
>
> projection: 99 (Albers Equal Area)
> zone:       0
> datum:      nad27
> ellipsoid:  clark66
> north:      450300
> south:      -604700
> west:       -373900
> east:       540100
> nsres:      1000
> ewres:      1000
> rows:       1055
> cols:       914
> cells:      964270
>
> I am new to GRASS but have been working with R for a couple of years. Is
> there something simple I am missing?
> Thanks,
> Sam
>
>

--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [hidden email]

_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand
Economic Geography Section
Department of Economics
Norwegian School of Economics and Business Administration
Helleveien 30
N-5045 Bergen, Norway
Sam Veloz

Re: [GRASS-stats] GRASS/R interface Vista 64

Reply Threaded More More options
Print post
Permalink
Updating the spgrass6 and rgdal packages fixed the problem.
Thanks,
Sam


Roger Bivand wrote:

> On Mon, 17 Nov 2008, Sam Veloz wrote:
>
>> I am trying to run R from within GRASS. I am running GRASS 6.3.0 with
>> R 2.8.0 on a Vista 64 platform. I am able to start R within GRASS and
>> load the spgrass6 library fine. However when I try:
>> G <- gmeta6()
>> I get the following error:
>> Error in system(paste(paste("g.region", .addexe(), sep = ""), "-g3"),  :
>>  g.region not found
>
> Thanks. The most likely cause is that the system is not being identified
> as a "windows" system. Could you copy the output from your running R
> within GRASS of .sessionInfo() and of Sys.getenv() into an RData file
> (save()) and pass it to me off-list? The specific test expects
> .Platform$OS.type == "windows", and if it isn't, there may be issues.
> The other possibility is that Sys.getenv("OSTYPE") isn't known.
>
> Roger
>
>>
>> If I run g.region -p in GRASS I get:
>>
>> projection: 99 (Albers Equal Area)
>> zone:       0
>> datum:      nad27
>> ellipsoid:  clark66
>> north:      450300
>> south:      -604700
>> west:       -373900
>> east:       540100
>> nsres:      1000
>> ewres:      1000
>> rows:       1055
>> cols:       914
>> cells:      964270
>>
>> I am new to GRASS but have been working with R for a couple of years.
>> Is there something simple I am missing?
>> Thanks,
>> Sam
>>
>>
>

--
****************************************************
Sam Veloz
Postdoctoral Researcher
Department of Environmental Science and Policy
University of California, Davis
[hidden email]
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats