CRAN Package Check Results for Package raster

Last updated on 2019-12-05 15:49:10 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 3.0-7 203.93 241.52 445.45 ERROR
r-devel-linux-x86_64-debian-gcc 3.0-7 143.59 202.79 346.38 OK
r-devel-linux-x86_64-fedora-clang 3.0-7 588.11 NOTE
r-devel-linux-x86_64-fedora-gcc 3.0-7 553.38 OK
r-devel-windows-ix86+x86_64 3.0-7 4.00 7.00 11.00 ERROR
r-devel-windows-ix86+x86_64-gcc8 3.0-7 403.00 492.00 895.00 NOTE
r-patched-linux-x86_64 3.0-7 156.38 243.15 399.53 OK
r-patched-solaris-x86 3.0-7 554.60 OK
r-release-linux-x86_64 3.0-7 161.33 243.95 405.28 OK
r-release-windows-ix86+x86_64 3.0-7 474.00 351.00 825.00 NOTE
r-release-osx-x86_64 3.0-7 NOTE
r-oldrel-windows-ix86+x86_64 3.0-7 339.00 386.00 725.00 NOTE
r-oldrel-osx-x86_64 3.0-7 NOTE

Check Details

Version: 3.0-7
Check: examples
Result: ERROR
    Running examples in 'raster-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: buffer
    > ### Title: buffer
    > ### Aliases: buffer buffer,RasterLayer-method buffer,Spatial-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > r <- raster(ncol=36,nrow=18)
    > values(r) <- NA
    > r[500] <- 1
    > b <- buffer(r, width=5000000)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    raster
     --- call from context ---
    .local(x, ...)
     --- call from argument ---
    if (class(pts) == "try-error") {
     d <- .distanceRows(x, filename = filename, ...)
     d <- reclassify(d, rbind(c(-1, width, 1), c(width, Inf, NA)))
     return(d)
    }
     --- R stacktrace ---
    where 1: .local(x, ...)
    where 2: buffer(r, width = 5e+06)
    where 3: buffer(r, width = 5e+06)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (x, width = 0, filename = "", doEdge = FALSE, ...)
    {
     stopifnot(width > 0)
     if (doEdge) {
     r <- boundaries(x, classes = FALSE, type = "inner", progress = .progress(...))
     pts <- try(rasterToPoints(r, fun = function(z) {
     z > 0
     })[, 1:2, drop = FALSE])
     }
     else {
     pts <- try(rasterToPoints(x)[, 1:2, drop = FALSE])
     }
     if (class(pts) == "try-error") {
     d <- .distanceRows(x, filename = filename, ...)
     d <- reclassify(d, rbind(c(-1, width, 1), c(width, Inf,
     NA)))
     return(d)
     }
     if (nrow(pts) == 0) {
     stop("RasterLayer has no NA cells (for which to compute a distance)")
     }
     out <- raster(x)
     filename <- trim(filename)
     if (couldBeLonLat(x)) {
     longlat = TRUE
     }
     else {
     longlat = FALSE
     }
     if (canProcessInMemory(out, 6)) {
     pb <- pbCreate(4, label = "buffer", ...)
     v <- values(x)
     i <- is.na(v)
     if (!any(i)) {
     stop("raster has no NA values to compute distance to")
     }
     pbStep(pb)
     xy <- xyFromCell(out, which(i))
     vals <- .Call("_raster_distanceToNearestPoint", xy, pts,
     longlat, 6378137, 1/298.257223563, PACKAGE = "raster")
     pbStep(pb)
     v[!i] <- 1
     v[i] <- NA^(vals > width)
     out <- setValues(out, v)
     pbStep(pb)
     if (filename != "") {
     out <- writeRaster(out, filename = filename, ...)
     }
     pbStep(pb)
     pbClose(pb)
     return(out)
     }
     out <- writeStart(out, filename = filename, ...)
     tr <- blockSize(out)
     pb <- pbCreate(tr$n, label = "buffer", ...)
     xy <- cbind(rep(xFromCol(out, 1:ncol(out)), tr$nrows[1]),
     NA)
     for (i in 1:tr$n) {
     if (i == tr$n) {
     xy <- xy[1:(ncol(out) * tr$nrows[i]), ]
     }
     xy[, 2] <- rep(yFromRow(out, tr$row[i]:(tr$row[i] + tr$nrows[i] -
     1)), each = ncol(out))
     vals <- getValues(x, tr$row[i], tr$nrows[i])
     j <- which(is.na(vals))
     vals[] <- 0
     if (length(j) > 0) {
     vals[j] <- .Call("_raster_distanceToNearestPoint",
     xy[j, , drop = FALSE], pts, longlat, 6378137,
     1/298.257223563, PACKAGE = "raster")
     }
     vals[vals > width] <- NA
     vals[!is.na(vals)] <- 1
     out <- writeValues(out, vals, tr$row[i])
     pbStep(pb)
     }
     pbClose(pb)
     out <- writeStop(out)
     return(out)
    }
    <environment: namespace:raster>
     --- function search by body ---
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 3.0-7
Check: installed package size
Result: NOTE
     installed size is 10.4Mb
     sub-directories of 1Mb or more:
     R 2.5Mb
     libs 6.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64-gcc8, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 3.0-7
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavor: r-devel-windows-ix86+x86_64

Version: 3.0-7
Check: dependencies in R code
Result: NOTE
    No protocol specified
    No protocol specified
Flavors: r-release-osx-x86_64, r-oldrel-osx-x86_64