Re: GRASS/R interface

4 messages Options
Embed this post
Permalink
Agustin Lobo-2

Re: GRASS/R interface

Reply Threaded More More options
Print post
Permalink
Thanks, where?
Also, there is no way the grass environment could be passed
to spgrass6 if R had been started from a not-grass terminal?
This would circumvent a current problem in the
windows osgeo4w QGIS-GRASS-R environment.
Agus

2009/2/12 Markus Neteler <[hidden email]>:

> On Wed, Feb 11, 2009 at 8:25 AM, Agustin Lobo <[hidden email]> wrote:
>> In relation to current problems with spgrass6() in a
>> windows osgeo4w QGIS-GRASS-R environment,
>> I'd like to make sure that using spgrass6()
>> actually requires having launched R from within a
>> GRASS terminal, otherwise the user gets the
>> "GRASS not running" error message. Am I wrong? This is an important
>> step in practice that is not mentioned in the documents
>> that you are refering to.
>
> Now mentioned!
>
> best
> Markus
>



--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
e-mail [hidden email]
http://www.ija.csic.es/gt/obster
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Roger Bivand

Re: GRASS/R interface

Reply Threaded More More options
Print post
Permalink
On Fri, 13 Feb 2009, Agustin Lobo wrote:

> Thanks, where?
> Also, there is no way the grass environment could be passed
> to spgrass6 if R had been started from a not-grass terminal?
> This would circumvent a current problem in the
> windows osgeo4w QGIS-GRASS-R environment.

I'm still unsure of the steps you are taking. Are you opening a GRASS
location/mapset - for example from GRASS tools under Plugins ->, then from
the tools choosing the console, and entering the command to start R there?
Could you put a sequence of screenshots describing your process on a site
somewhere - I have no problem with regular QGIS 0.11.0. Starting spgrass6
outside the GRASS environment will most likely not work well at all,
because nothing that it needs to run is available (progam PATH, data
location, etc.).

Roger

> Agus
>
> 2009/2/12 Markus Neteler <[hidden email]>:
>> On Wed, Feb 11, 2009 at 8:25 AM, Agustin Lobo <[hidden email]> wrote:
>>> In relation to current problems with spgrass6() in a
>>> windows osgeo4w QGIS-GRASS-R environment,
>>> I'd like to make sure that using spgrass6()
>>> actually requires having launched R from within a
>>> GRASS terminal, otherwise the user gets the
>>> "GRASS not running" error message. Am I wrong? This is an important
>>> step in practice that is not mentioned in the documents
>>> that you are refering to.
>>
>> Now mentioned!
>>
>> best
>> Markus
>>
>
>
>
>

--
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
Agustin Lobo-2

Re: GRASS/R interface

Reply Threaded More More options
Print post
Permalink
Roger,

I also recall not having problems with qgis 0.11, I think this is a
osgeow4 problem.
The sequence (in windows using osgeo4w qgis1.0 and grass) is:

1. Start QGIS 1.0
2. Open project
2. Start GRASS plugin
3. Open mapset
4. Start GRASS tools
5. Start Grass shell
6. Start R from the shell
7. Run spgrass6() : gdal error at loading rgdal (which, actually,
would not be required for
what we are doing). In our previous messages, we concluded that these
errors are osgeo4w issues that we would not be able to solve.

spgrass6() loads rgdal with no problems if R is not launched from the
grass shell, but
then "grass is not running". This is why I asked if the grass info
could be passed to
spgrass6() explicitly by the user as parameters. Another way to
circumvent the problem would be just leaving the rgdal loading up to
the user (i.e., spgrass6(rgdal=F) )

Note that this is not an operational problem for me now, we've just
dropped using
windows for that project. The same sequence works fine in linux. This
has actually been
an advantage, as the student has switched from win to lin. (Many
students don't because the current R default gui in windows is much
better than in linux, but this is another story)

Agus



2009/2/13 Roger Bivand <[hidden email]>:

> On Fri, 13 Feb 2009, Agustin Lobo wrote:
>
>> Thanks, where?
>> Also, there is no way the grass environment could be passed
>> to spgrass6 if R had been started from a not-grass terminal?
>> This would circumvent a current problem in the
>> windows osgeo4w QGIS-GRASS-R environment.
>
> I'm still unsure of the steps you are taking. Are you opening a GRASS
> location/mapset - for example from GRASS tools under Plugins ->, then from
> the tools choosing the console, and entering the command to start R there?
> Could you put a sequence of screenshots describing your process on a site
> somewhere - I have no problem with regular QGIS 0.11.0. Starting spgrass6
> outside the GRASS environment will most likely not work well at all, because
> nothing that it needs to run is available (progam PATH, data location,
> etc.).
>
> Roger
>
>> Agus
>>
>> 2009/2/12 Markus Neteler <[hidden email]>:
>>>
>>> On Wed, Feb 11, 2009 at 8:25 AM, Agustin Lobo <[hidden email]>
>>> wrote:
>>>>
>>>> In relation to current problems with spgrass6() in a
>>>> windows osgeo4w QGIS-GRASS-R environment,
>>>> I'd like to make sure that using spgrass6()
>>>> actually requires having launched R from within a
>>>> GRASS terminal, otherwise the user gets the
>>>> "GRASS not running" error message. Am I wrong? This is an important
>>>> step in practice that is not mentioned in the documents
>>>> that you are refering to.
>>>
>>> Now mentioned!
>>>
>>> best
>>> Markus
>>>
>>
>>
>>
>>
>
> --
> 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]
>
>



--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
e-mail [hidden email]
http://www.ija.csic.es/gt/obster
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Markus Neteler

Re: GRASS/R interface

Reply Threaded More More options
Print post
Permalink
In reply to this post by Agustin Lobo-2
On Fri, Feb 13, 2009 at 10:47 AM, Agustin Lobo <[hidden email]> wrote:
> Thanks, where?

In the micro instructions posted earlier:

http://grass.osgeo.org/statsgrass/
-> GRASS 6.x: GRASS6-R interface (installation: see here)
    http://grass.osgeo.org/statsgrass/grass6_r_install.html

Markus
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats