[R-sig-Geo] closeAllConnections() in spgrass6. Side effect?
Roger Bivand
Roger.Bivand at nhh.no
Mon Mar 29 13:09:56 CEST 2010
On Mon, 29 Mar 2010, jgarcia at ija.csic.es wrote:
> Hi Roger,
> Just to confirm that everything goes OK.
Thanks, fresh spgrass6 submitted to CRAN.
Roger
> Thanks again,
> Javier
> ---
>> On Sun, 28 Mar 2010, jgarcia at ija.csic.es wrote:
>>
>>> Hi Roger and the others,
>>>
>>> I've noticed that readRAST6() uses closeAllConnection(), as it is trying
>>> to close a raw "socket" type connection I had opened for parallel
>>> processing (snow package).
>>>
>>> Isn't this a side effect and perhaps closeAllConnection() should be
>>> replaced here by any other alternative?
>>>
>>> Thanks (also for the package) and best regards,
>>
>> Javier,
>>
>> Could you try a change in the package source from sourceforge, check out
>> the CVS source from:
>>
>> cvs -z3 \
>> -d:pserver:anonymous at r-spatial.cvs.sourceforge.net:/cvsroot/r-spatial co \
>> -P spgrass6
>>
>> I've added a flag to permit the call to closeAllConnections() to be
>> avoided; you would use close_OK=FALSE. For most users it is still needed,
>> as the number of connections opened in trying to guess what the GDAL GRASS
>> plugin needs is not well-specified.
>>
>> Hope this helps,
>>
>> Roger
>>
>>> Javier
>>>
>>> ---
>>> Javier García-Pintado
>>> 75 Trotsworth Court
>>> Christchurh Road
>>> Virginia Water
>>> GU25 4AH
>>> Surrey
>>> United Kingdom
>>>
>>>
>>>
>>
>> --
>> 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: Roger.Bivand at nhh.no
>>
>
>
--
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: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list