CRAN Package Check Results for Package spatial.tools

Last updated on 2020-01-18 08:00:02 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.6.0 11.15 83.79 94.94 ERROR
r-devel-linux-x86_64-debian-gcc 1.6.0 9.92 77.06 86.98 NOTE
r-devel-linux-x86_64-fedora-clang 1.6.0 140.17 NOTE
r-devel-linux-x86_64-fedora-gcc 1.6.0 136.05 NOTE
r-devel-windows-ix86+x86_64 1.6.0 32.00 149.00 181.00 NOTE
r-devel-windows-ix86+x86_64-gcc8 1.6.0 20.00 149.00 169.00 NOTE
r-patched-linux-x86_64 1.6.0 9.28 87.11 96.39 NOTE
r-patched-solaris-x86 1.6.0 191.60 NOTE
r-release-linux-x86_64 1.6.0 9.51 90.19 99.70 NOTE
r-release-windows-ix86+x86_64 1.6.0 26.00 120.00 146.00 NOTE
r-release-osx-x86_64 1.6.0 OK
r-oldrel-windows-ix86+x86_64 1.6.0 18.00 97.00 115.00 NOTE
r-oldrel-osx-x86_64 1.6.0 OK

Check Details

Version: 1.6.0
Check: dependencies in R code
Result: NOTE
    Missing or unexported object: 'randomForestSRC::quantileReg'
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-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.6.0
Check: examples
Result: ERROR
    Running examples in 'spatial.tools-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: bbox_to_SpatialPolygons
    > ### Title: Create a SpatialPolygons Bounding Box
    > ### Aliases: bbox_to_SpatialPolygons
    >
    > ### ** Examples
    >
    > library("raster")
    Loading required package: sp
    > tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="spatial.tools"))
    > bbox_to_SpatialPolygons(tahoe_highrez)
    class : SpatialPolygons
    features : 1
    extent : -119.9328, -119.9306, 39.28922, 39.29141 (xmin, xmax, ymin, ymax)
    crs : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
    > tahoe_highrez_extent <- extent(tahoe_highrez)
    > bbox_to_SpatialPolygons(tahoe_highrez_extent,
    + CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"))
    class : SpatialPolygons
    features : 1
    extent : -119.9328, -119.9306, 39.28922, 39.29141 (xmin, xmax, ymin, ymax)
    crs : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
    > tahoe_highrez_bbox <- bbox(tahoe_highrez)
    > bbox_to_SpatialPolygons(tahoe_highrez_bbox,
    + CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"))
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    spatial.tools
     --- call from context ---
    bbox_to_SpatialPolygons(tahoe_highrez_bbox, CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"))
     --- call from argument ---
    if (class(x) == "character") {
     x <- brick(x)
    }
     --- R stacktrace ---
    where 1: bbox_to_SpatialPolygons(tahoe_highrez_bbox, CRS("+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"))
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (x, proj4string = CRS(as.character(NA)))
    {
     if (class(x) == "character") {
     x <- brick(x)
     }
     if (class(x) == "RasterLayer" || class(x) == "RasterBrick" ||
     class(x) == "RasterStack") {
     bbox <- bbox(x)
     proj4string <- CRS(projection(x))
     }
     if (class(x) == "Extent") {
     bbox <- matrix(c(x@xmin, x@ymin, x@xmax, x@ymax), nrow = 2,
     ncol = 2)
     }
     if (class(x) == "matrix") {
     bbox <- x
     }
     coords <- rbind(c(bbox[1, 1], bbox[2, 1]), c(bbox[1, 2],
     bbox[2, 1]), c(bbox[1, 2], bbox[2, 2]), c(bbox[1, 1],
     bbox[2, 2]), c(bbox[1, 1], bbox[2, 1]))
     bboxPolygon <- Polygon(coords)
     bboxPolygons <- Polygons(list(bboxPolygon), ID = 1)
     bboxSpatialPolygons <- SpatialPolygons(list(bboxPolygons),
     proj4string = proj4string)
     return(bboxSpatialPolygons)
    }
    <bytecode: 0x8a03d58>
    <environment: namespace:spatial.tools>
     --- function search by body ---
    Function bbox_to_SpatialPolygons in namespace spatial.tools has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(x) == "character") { : the condition has length > 1
    Calls: bbox_to_SpatialPolygons
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang