CRAN Package Check Results for Package raster

Last updated on 2015-05-30 11:50:31.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.3-40 28.84 104.31 133.15 ERROR
r-devel-linux-x86_64-debian-gcc 2.3-40 26.64 97.25 123.89 ERROR
r-devel-linux-x86_64-fedora-clang 2.3-40 256.60 ERROR
r-devel-linux-x86_64-fedora-gcc 2.3-40 234.04 ERROR
r-devel-osx-x86_64-clang 2.3-40 221.44 ERROR
r-devel-windows-ix86+x86_64 2.3-40 72.00 159.00 231.00 ERROR
r-patched-linux-x86_64 2.3-40 29.08 114.26 143.34 OK
r-patched-solaris-sparc 2.3-40 1666.00 OK
r-patched-solaris-x86 2.3-40 331.80 OK
r-release-linux-x86_64 2.3-40 26.19 118.58 144.77 OK
r-release-osx-x86_64-mavericks 2.3-40 NOTE
r-release-osx-x86_64-snowleopard 2.3-40 ERROR
r-release-windows-ix86+x86_64 2.3-40 69.00 197.00 266.00 NOTE
r-oldrel-windows-ix86+x86_64 2.3-40 70.00 215.00 285.00 NOTE

Check Details

Version: 2.3-40
Check: examples
Result: ERROR
    Running examples in ‘raster-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: adjacent
    > ### Title: Adjacent cells
    > ### Aliases: adjacent
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > r <- raster(nrows=10, ncols=10)
    > adjacent(r, cells=c(1, 55), directions=8, pairs=TRUE)
     from to
     [1,] 55 44
     [2,] 1 10
     [3,] 55 54
     [4,] 1 20
     [5,] 55 64
     [6,] 55 46
     [7,] 1 2
     [8,] 55 56
     [9,] 1 12
    [10,] 55 66
    [11,] 55 45
    [12,] 1 11
    [13,] 55 65
    >
    > a <- adjacent(r, cell = c(1,55,90), directions=4, sorted=TRUE)
    > a
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    > r[c(1,55,90)] <- 1
    > r[a] <- 2
    > plot(r)
    >
    > # same result as above
    > rook <- matrix(c(NA, 1, NA,
    + 1, 0, 1,
    + NA, 1, NA), ncol=3, byrow=TRUE)
    >
    > adjacent(r, cells = c(1,55,90), directions=rook, sorted=TRUE)
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    >
    > # Count the number of times that a cell with a certain value
    > # occurs next to a cell with a certain value
    > set.seed(0)
    > r <- raster(ncol=10, nrow=10)
    > r[] <- round(runif(ncell(r)) * 5)
    > a <- adjacent(r, 1:ncell(r), 4, pairs=TRUE)
    > tb <- table(r[a[,1]], r[a[,2]])
    > tb
    
     0 1 2 3 4 5
     0 2 4 7 4 10 0
     1 4 14 14 7 19 6
     2 7 14 30 15 35 8
     3 4 7 15 14 13 3
     4 10 19 35 13 20 5
     5 0 6 8 3 5 0
    > plot(raster(tb[], xmn=-0.5, xmx=5.5, ymn=-0.5, ymx=5.5))
    Error in plot(raster(tb[], xmn = -0.5, xmx = 5.5, ymn = -0.5, ymx = 5.5)) :
     error in evaluating the argument 'x' in selecting a method for function 'plot': Error in (function (classes, fdef, mtable) :
     unable to find an inherited method for function ‘raster’ for signature ‘"table"’
    Calls: raster -> <Anonymous>
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-osx-x86_64-clang

Version: 2.3-40
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: 'ncdf4'
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 2.3-40
Check: running examples for arch ‘i386’
Result: ERROR
    Running examples in 'raster-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: adjacent
    > ### Title: Adjacent cells
    > ### Aliases: adjacent
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > r <- raster(nrows=10, ncols=10)
    > adjacent(r, cells=c(1, 55), directions=8, pairs=TRUE)
     from to
     [1,] 55 44
     [2,] 1 10
     [3,] 55 54
     [4,] 1 20
     [5,] 55 64
     [6,] 55 46
     [7,] 1 2
     [8,] 55 56
     [9,] 1 12
    [10,] 55 66
    [11,] 55 45
    [12,] 1 11
    [13,] 55 65
    >
    > a <- adjacent(r, cell = c(1,55,90), directions=4, sorted=TRUE)
    > a
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    > r[c(1,55,90)] <- 1
    > r[a] <- 2
    > plot(r)
    >
    > # same result as above
    > rook <- matrix(c(NA, 1, NA,
    + 1, 0, 1,
    + NA, 1, NA), ncol=3, byrow=TRUE)
    >
    > adjacent(r, cells = c(1,55,90), directions=rook, sorted=TRUE)
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    >
    > # Count the number of times that a cell with a certain value
    > # occurs next to a cell with a certain value
    > set.seed(0)
    > r <- raster(ncol=10, nrow=10)
    > r[] <- round(runif(ncell(r)) * 5)
    > a <- adjacent(r, 1:ncell(r), 4, pairs=TRUE)
    > tb <- table(r[a[,1]], r[a[,2]])
    > tb
    
     0 1 2 3 4 5
     0 2 4 7 4 10 0
     1 4 14 14 7 19 6
     2 7 14 30 15 35 8
     3 4 7 15 14 13 3
     4 10 19 35 13 20 5
     5 0 6 8 3 5 0
    > plot(raster(tb[], xmn=-0.5, xmx=5.5, ymn=-0.5, ymx=5.5))
    Error in plot(raster(tb[], xmn = -0.5, xmx = 5.5, ymn = -0.5, ymx = 5.5)) :
     error in evaluating the argument 'x' in selecting a method for function 'plot': Error in (function (classes, fdef, mtable) :
     unable to find an inherited method for function 'raster' for signature '"table"'
    Calls: raster -> <Anonymous>
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 2.3-40
Check: running examples for arch ‘x64’
Result: ERROR
    Running examples in 'raster-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: adjacent
    > ### Title: Adjacent cells
    > ### Aliases: adjacent
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > r <- raster(nrows=10, ncols=10)
    > adjacent(r, cells=c(1, 55), directions=8, pairs=TRUE)
     from to
     [1,] 55 44
     [2,] 1 10
     [3,] 55 54
     [4,] 1 20
     [5,] 55 64
     [6,] 55 46
     [7,] 1 2
     [8,] 55 56
     [9,] 1 12
    [10,] 55 66
    [11,] 55 45
    [12,] 1 11
    [13,] 55 65
    >
    > a <- adjacent(r, cell = c(1,55,90), directions=4, sorted=TRUE)
    > a
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    > r[c(1,55,90)] <- 1
    > r[a] <- 2
    > plot(r)
    >
    > # same result as above
    > rook <- matrix(c(NA, 1, NA,
    + 1, 0, 1,
    + NA, 1, NA), ncol=3, byrow=TRUE)
    >
    > adjacent(r, cells = c(1,55,90), directions=rook, sorted=TRUE)
     from to
     [1,] 1 2
     [2,] 1 10
     [3,] 1 11
     [4,] 55 45
     [5,] 55 54
     [6,] 55 56
     [7,] 55 65
     [8,] 90 80
     [9,] 90 81
    [10,] 90 89
    [11,] 90 100
    >
    >
    > # Count the number of times that a cell with a certain value
    > # occurs next to a cell with a certain value
    > set.seed(0)
    > r <- raster(ncol=10, nrow=10)
    > r[] <- round(runif(ncell(r)) * 5)
    > a <- adjacent(r, 1:ncell(r), 4, pairs=TRUE)
    > tb <- table(r[a[,1]], r[a[,2]])
    > tb
    
     0 1 2 3 4 5
     0 2 4 7 4 10 0
     1 4 14 14 7 19 6
     2 7 14 30 15 35 8
     3 4 7 15 14 13 3
     4 10 19 35 13 20 5
     5 0 6 8 3 5 0
    > plot(raster(tb[], xmn=-0.5, xmx=5.5, ymn=-0.5, ymx=5.5))
    Error in plot(raster(tb[], xmn = -0.5, xmx = 5.5, ymn = -0.5, ymx = 5.5)) :
     error in evaluating the argument 'x' in selecting a method for function 'plot': Error in (function (classes, fdef, mtable) :
     unable to find an inherited method for function 'raster' for signature '"table"'
    Calls: raster -> <Anonymous>
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 2.3-40
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking: ‘rgdal’ ‘rgeos’
Flavor: r-release-osx-x86_64-mavericks

Version: 2.3-40
Check: Rd cross-references
Result: NOTE
    Package unavailable to check Rd xrefs: ‘rgdal’
Flavor: r-release-osx-x86_64-mavericks

Version: 2.3-40
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking:
     ‘rgeos’ ‘igraph’ ‘rasterVis’
Flavor: r-release-osx-x86_64-snowleopard

Version: 2.3-40
Check: Rd cross-references
Result: NOTE
    Packages unavailable to check Rd xrefs: ‘gstat’, ‘fields’
Flavor: r-release-osx-x86_64-snowleopard

Version: 2.3-40
Check: examples
Result: ERROR
    Running examples in ‘raster-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: clump
    > ### Title: Detect clumps
    > ### Aliases: clump clump,RasterLayer-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > r <- raster(ncols=12, nrows=12)
    > set.seed(0)
    > r[] <- round(runif(ncell(r))*0.7 )
    > rc <- clump(r)
    Loading required namespace: igraph
    Failed with error: ‘there is no package called ‘igraph’’
    Error in .local(x, ...) :
     you need to install the igraph package to be able to use this function
    Calls: clump -> clump -> .local
    Execution halted
Flavor: r-release-osx-x86_64-snowleopard