[GRASS-stats] Towards spgrass7

Rainer M Krug Rainer at krugs.de
Mon Jan 26 05:43:22 PST 2015


Roger Bivand <Roger.Bivand-aX1nC9UfZf8 at public.gmane.org> writes:

> On Tue, 20 Jan 2015, Rainer M Krug wrote:
>
>> Sorry if this has been received before - but I don't seem to be able to
>> post via gmane?
>
> Sorry, don't know about gmane.
>
>>
>> Roger Bivand <Roger.Bivand-aX1nC9UfZf8-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org> writes:
>>
>>> On Thu, 15 Jan 2015, Markus Neteler wrote:
>>>
>>>> Dear Roger,
>>>>
>>>> On Thu, Jan 15, 2015 at 1:10 PM, Roger Bivand
>>>> <Roger.Bivand-aX1nC9UfZf8-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org>
>>>> wrote:
>>>>> Dear Markus,
>>>>>
>>>>> Good to hear you are well! Great that RC1 is ready!
>>>>
>>>> Yeah, it took us a while but the latest cleanup efforts where really
>>>> important. I expect that we will proceed from RC1 to final release
>>>> rather fast (finally!).
>>>>
>>>>> Yes, I guess it would be sensible to condition on version in these cases, so
>>>>> first add comments for hard-coded flags and options (there are also some
>>>>> changes in type, I think). In addition, bin_out_win in parseGRASS() needs
>>>>> updating and/or conditioning on version, and the logic for handling where
>>>>> Python scripts are found should be looked at.
>>>>
>>>> Yes, fine.
>>>>
>>>>> You do not (yet) have commit rights on:
>>>>> https://r-forge.r-project.org/projects/rspatial/ where spgrass6 lives.
>>>>
>>>> I have now registered on R-Forge.
>>>>
>>>>> Two alignments: should GRASS5 support (GRASS packages) be dropped (yes)?
>>>>
>>>> Yes, dropped.
>>>>
>>>>> Should spgrass6 be forked into (new) spgrass which supports >= 7, and leave
>>>>> spgrass6 for 6.*?
>>>>
>>>> I'd support to fork in order to not have too many conditions in the code.
>>>>
>>>>> If fork, is SVN on R-Forge OK?
>>>>
>>>> Yes.
>>>
>>> After forking, as of now:
>>>
>>> install.packages("spgrass", repos="http://R-Forge.R-project.org")
>>>
>>> installs the "new" package for GRASS 7. Function names are now without
>>> the trailing 6 to avoid confusion, and all examples run correctly in
>>> Spearfish in GRASS 7.0 RC1.
>>>
>>> Could someone please run the examples in Spearfish in GRASS 7.0 RC1 on
>>> Windows after installing the Windoes spgrass binary (R 3.1) from
>>> R-Forge, and report back?
>>>
>>> Could someone please install spgrass from source on OSX (pre-Yosemite
>>> and Yosemite), run the examples in Spearfish, and report back?
>>
>> I installed now spgrass and have the GRASS 7 Spearfish dataset. Which
>> examples are you referring to to be run?
>
> Thanks for looking. I provided commit rights on R-forge, so if you see
> things that need fixing, please do so!

I just committed some spring cleaning - removing checks and conditional
code for grass 6 and removed checks and the if-checks for grass 7 code.

The examples are completed successfully.

One think I realised: I had a complete quitting of R when I had set the variable

,----
| export GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins
`----

when executing the command

,----
| bugsDF <- readVECT("bugsites", ignore.stderr=TRUE, mapset="PERMANENT")
`----

No error message, nothing, just back in GRASS. - never sen this before.

I do not know if this is caused by a not with grass7 compiled plugin or
why as I usually do not use the plugin.

Cheers,

Rainer

>
> (Yosemite should have been Mavericks, of course). The examples are on
> the help pages, so running R inside GRASS 7 something like:
>
> library(spgrass)
> example(execGRASS)
> example(gmeta)
> example(spgrass)
> example(readRAST)
> example(readVECT)
>
> interactively would be a possibility.
>
> I guess that the package will move to nc_basic to align better with
> GRASS 7.
>
> Best wishes,
>
> Roger
>
>>
>> Rainer
>>
>>>
>>> The existing spgrass6 does not work with GRASS 7 following recent
>>> changes in GRASS parameter names - it may be modified either to permit
>>> these, or to remove GRASS 7 conditions, leaving it just for GRASS 6.
>>>
>>> Best wishes,
>>>
>>> Roger
>>>
>>>>
>>>> Best wishes,
>>>> Markus
>>>>
>>
>>

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-stats/attachments/20150126/dffc1e43/attachment.pgp>


More information about the grass-stats mailing list