CRAN Package Check Results for Package raster

Last updated on 2020-07-04 19:47:43 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 3.3-7 216.89 269.60 486.49 OK
r-devel-linux-x86_64-debian-gcc 3.3-7 166.16 202.47 368.63 OK
r-devel-linux-x86_64-fedora-clang 3.3-7 631.71 NOTE
r-devel-linux-x86_64-fedora-gcc 3.3-7 582.26 OK
r-devel-windows-ix86+x86_64 3.3-7 523.00 357.00 880.00 NOTE
r-patched-linux-x86_64 3.3-7 169.41 271.32 440.73 OK
r-patched-solaris-x86 3.3-7 583.80 OK
r-release-linux-x86_64 3.3-7 170.05 270.19 440.24 OK
r-release-osx-x86_64 3.3-7 ERROR
r-release-windows-ix86+x86_64 3.3-6 495.00 468.00 963.00 NOTE
r-oldrel-osx-x86_64 3.3-7 WARN
r-oldrel-windows-ix86+x86_64 3.3-7 384.00 357.00 741.00 WARN

Check Details

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

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

Version: 3.3-7
Check: examples
Result: ERROR
    Running examples in ‘raster-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: rasterize
    > ### Title: Rasterize points, lines, or polygons
    > ### Aliases: rasterize rasterize,matrix,Raster-method
    > ### rasterize,data.frame,Raster-method rasterize,sf,Raster-method
    > ### rasterize,SpatialPoints,Raster-method
    > ### rasterize,SpatialLines,Raster-method
    > ### rasterize,SpatialPolygons,Raster-method
    > ### rasterize,Extent,Raster-method
    > ### Keywords: methods spatial
    >
    > ### ** Examples
    >
    >
    > ###############################
    > # rasterize points
    > ###############################
    > r <- raster(ncols=36, nrows=18)
    > n <- 1000
    > set.seed(123)
    > x <- runif(n) * 360 - 180
    > y <- runif(n) * 180 - 90
    > xy <- cbind(x, y)
    > # get the (last) indices
    > r0 <- rasterize(xy, r)
    > # presence/absensce (NA) (is there a point or not?)
    > r1 <- rasterize(xy, r, field=1)
    > # how many points?
    > r2 <- rasterize(xy, r, fun=function(x,...)length(x))
    > vals <- runif(n)
    > # sum of the values associated with the points
    > r3 <- rasterize(xy, r, vals, fun=sum)
    >
    > # with a SpatialPointsDataFrame
    > vals <- 1:n
    > p <- data.frame(xy, name=vals)
    > coordinates(p) <- ~x+y
    > r <- rasterize(p, r, 'name', fun=min)
    > #r2 <- rasterize(p, r, 'name', fun=max)
    > #plot(r, r2, cex=0.5)
    >
    > ###############################
    > # rasterize lines
    > ###############################
    > cds1 <- rbind(c(-180,-20), c(-140,55), c(10, 0), c(-140,-60))
    > cds2 <- rbind(c(-10,0), c(140,60), c(160,0), c(140,-55))
    > cds3 <- rbind(c(-125,0), c(0,60), c(40,5), c(15,-45))
    >
    > lines <- spLines(cds1, cds2, cds3)
    >
    > r <- raster(ncols=90, nrows=45)
    > r <- rasterize(lines, r)
    >
    > ## Not run:
    > ##D plot(r)
    > ##D plot(lines, add=TRUE)
    > ##D
    > ##D r <- rasterize(lines, r, fun='count')
    > ##D plot(r)
    > ##D
    > ##D values(r) <- 1:ncell(r)
    > ##D r <- rasterize(lines, r, mask=TRUE)
    > ##D plot(r)
    > ##D
    > ##D values(r) <- 1
    > ##D r[lines] <- 10
    > ##D plot(r)
    > ## End(Not run)
    >
    > ###############################
    > # rasterize polygons
    > ###############################
    >
    > p1 <- rbind(c(-180,-20), c(-140,55), c(10, 0), c(-140,-60), c(-180,-20))
    > hole <- rbind(c(-150,-20), c(-100,-10), c(-110,20), c(-150,-20))
    > p1 <- list(p1, hole)
    > p2 <- rbind(c(-10,0), c(140,60), c(160,0), c(140,-55), c(-10,0))
    > p3 <- rbind(c(-125,0), c(0,60), c(40,5), c(15,-45), c(-125,0))
    >
    > pols <- spPolygons(p1, p2, p3)
    >
    > r <- raster(ncol=90, nrow=45)
    Error in packageVersion("rgdal") : there is no package called ‘rgdal’
    Calls: raster -> raster -> .local -> CRS -> packageVersion
    Execution halted
Flavor: r-release-osx-x86_64

Version: 3.3-6
Check: installed package size
Result: NOTE
     installed size is 6.4Mb
     sub-directories of 1Mb or more:
     R 2.5Mb
     libs 2.9Mb
Flavor: r-release-windows-ix86+x86_64

Version: 3.3-7
Check: dependencies in R code
Result: NOTE
    No protocol specified
    No protocol specified
Flavor: r-oldrel-osx-x86_64

Version: 3.3-7
Check: Rd cross-references
Result: WARN
    Missing link or links in documentation object 'density.Rd':
     ‘[base]{plot}’
    
    Missing link or links in documentation object 'plot.Rd':
     ‘[base]{plot}’
    
    Missing link or links in documentation object 'zoom.Rd':
     ‘[base]{plot}’
    
    See section 'Cross-references' in the 'Writing R Extensions' manual.
Flavors: r-oldrel-osx-x86_64, r-oldrel-windows-ix86+x86_64