[Rspatial-devel] recent CRAN check errors

Roger Bivand Roger.Bivand at nhh.no
Fri Dec 21 14:51:10 CET 2012


On Fri, 21 Dec 2012, Edzer Pebesma wrote:

> I committed the fix; could you run check & upload? (Otherwise I could do
> it later)

Submitted 1.0-5, after testing check pass for the two failing packages.

Roger

>
> On 12/21/2012 02:08 PM, Roger Bivand wrote:
>> On Fri, 21 Dec 2012, Kurt Hornik wrote:
>>
>>> Roger,
>>>
>>> We now see
>>>
>>> adehabitatMA:
>>>
>>>> image(m[,6])
>>> Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,  :
>>>  range not meaningful for factors
>>> Calls: image ... image.SpatialGridDataFrame -> scl -> diff ->
>>> Summary.factor
>>> Execution halted
>>
>> This is also present as:
>>
>> library(sp)
>> data(meuse.grid)
>> coordinates(meuse.grid) <- c("x", "y")
>> gridded(meuse.grid) <- TRUE
>> image(meuse.grid, "soil")
>>
>> or
>>
>> range(meuse.grid[["soil"]][is.finite(meuse.grid[["soil"]])])
>>
>> for the zlim= default. This works:
>>
>> range(as.numeric(meuse.grid[["soil"]])[is.finite(
>>   as.numeric(meuse.grid[["soil"]]))])
>>
>> but I'm not aware of other consequences - Edzer?
>>
>> https://r-forge.r-project.org/scm/viewvc.php/pkg/sp/R/image.R?root=rspatial&r1=1147&r2=1287
>>
>>
>>>
>>> maptools:
>>>
>>>> try1 <- dotsInPolys(nc_SP, as.integer(nc_SP$SID74))
>>> Error: could not find function "sample.Polygons"
>>>
>>
>> A consequence of
>>
>> https://r-forge.r-project.org/scm/viewvc.php/pkg/sp/NAMESPACE?root=rspatial&r1=1310&r2=1311
>>
>>
>> and got caught up in the crash-fix release. Will submit fresh maptools
>> shortly, Edzer had updated the code.
>>
>> Roger
>>
>>> pgirmess:
>>>
>>> same as for adehabitatME.
>>>
>>> Are these from the recent sp upgrade?  If so, "intentional"?
>>>
>>> Best
>>> -k
>>>
>>
>
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
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 Rspatial-devel mailing list