<div dir="ltr"><span style="font-size:13px">Rainer,</span><br><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Where can I get the new spgrass6 and spgrass7 to do some testing?</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Thank you,</span></div><div><span style="font-size:13px">Tom</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 7:23 AM, Rainer M Krug <span dir="ltr"><<a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Rainer M Krug <<a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a>> writes:<br>
<br>
> Roger Bivand <<a href="mailto:Roger.Bivand-aX1nC9UfZf8@public.gmane.org">Roger.Bivand-aX1nC9UfZf8@public.gmane.org</a>> writes:<br>
><br>
>> On Tue, 27 Jan 2015, Rainer M Krug wrote:<br>
>><br>
>>> Hi<br>
>>><br>
>>> I just committed a few of commits which refactor the code of readRAST,<br>
>>> writeRAST, readVECT & writeVECT by creating internal fi=unctions for<br>
>>> reading / writing for plugin / non-plugin and moving the default values<br>
>>> (get...Options()) into the function definitions.<br>
>><br>
>> Good, thanks; I've updated the default values in the help files. It's<br>
>> easy to check for discrepancies in spgrass/pkg:<br>
>><br>
>> R CMD build spgrass7<br>
>> R CMD check spgrass7_0.1-0.tar.gz<br>
><br>
> Thanks - haven't thought about about the check - will do the next time.<br>
><br>
><br>
><br>
>><br>
>> Maybe we could quieten the progress bar in the output from checking?<br>
>> As in:<br>
>><br>
>> pkg/spgrass7.Rcheck/spgrass7.Rout<br>
>><br>
>> (local file, not added to repository, created by R CMD check if run in<br>
>> spgrass/pkg).<br>
>><br>
>>><br>
>>> Also, I added tryCatch blocks to close open connections and to reset<br>
>>> echoCmdOption. I ran the examples before each commit and I did not see<br>
>>> any errors or changed behavior.<br>
>>><br>
>>> Apologies for the typos in the commit messages - I only saw them later.<br>
>>><br>
>>> To stick with consistency, I would recommend to rename the package to<br>
>>> spgrass7 and to look into the possibility to create a meta-package which<br>
>>> uses spgrass6 or spgrass7 (I don't know about the GRASS 5 interface -<br>
>>> haven't used it) depending on the GRASS GIS version set / loaded.<br>
>>><br>
>><br>
>> I've renamed spgrass as spgrass7 - when you update, the change will<br>
>> propagate.<br>
><br>
> Thanks - got it.<br>
><br>
>> I'm unsure about a metapackage, maybe block version 7 in<br>
>> spgrass6 (following the parameter and flag name harmonisation).<br>
><br>
> Yes - spgrass6 for 6.x, spgrass7 for 7.x.<br>
><br>
> Will respnd in more detail tomorrow.<br>
<br>
OK - I just committed a blocking mechanism which for spgrass6 and<br>
spgrass7 so that they<br>
<br>
a) when R is started in GRASS, the package can not be loaded if the<br>
versions are not compatible and<br>
b) initGRASS raises an error if the GRASS GIS version in gisBase is not<br>
compatible with the package version<br>
<br>
If you think this is the right approach, the help files still need to be<br>
amended to reflect this change.<br>
<br>
I was thinking if it would make sense to introduce an overwrite<br>
mechanism for these checks to enable "non-standard" use or testing?<br>
<br>
I haven't looked at references for GRASS 7.0 in spgrass6 yet.<br>
<br>
Cheers,<br>
<br>
Rainer<br>
<br>
><br>
> Thanks,<br>
><br>
> Rainer<br>
><br>
><br>
>><br>
>> Best wishes,<br>
>><br>
>> Roger<br>
>><br>
>>> Cheers,<br>
>>><br>
>>> Rainer<br>
>>><br>
>>><br>
<br>
--<br>
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br>
<br>
Centre of Excellence for Invasion Biology<br>
Stellenbosch University<br>
South Africa<br>
<br>
Tel : +33 - (0)9 53 10 27 44<br>
Cell: +33 - (0)6 85 62 59 98<br>
Fax : +33 - (0)9 58 10 27 44<br>
<br>
Fax (D): +49 - (0)3 21 21 25 22 44<br>
<br>
email: <a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a><br>
<br>
Skype: RMkrug<br>
<br>
PGP: 0x0F52F982<br>
<br>_______________________________________________<br>
grass-stats mailing list<br>
<a href="mailto:grass-stats@lists.osgeo.org">grass-stats@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-stats" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-stats</a><br></blockquote></div><br><br clear="all"><div><br></div><br><div class="gmail_signature"><div><br></div></div>
</div></div>