CRAN Package Check Results for Package oceanmap

Last updated on 2020-03-07 11:48:22 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0.1 15.19 126.08 141.27 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.0.1 13.35 97.74 111.09 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0.1 179.58 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.0.1 165.14 ERROR
r-devel-windows-ix86+x86_64 0.1.0.1 53.00 258.00 311.00 NOTE
r-devel-windows-ix86+x86_64-gcc8 0.1.0.1 30.00 210.00 240.00 NOTE
r-patched-linux-x86_64 0.1.0.1 13.27 134.60 147.87 OK
r-patched-solaris-x86 0.1.0.1 273.10 NOTE
r-release-linux-x86_64 0.1.0.1 13.64 135.35 148.99 OK
r-release-windows-ix86+x86_64 0.1.0.1 27.00 188.00 215.00 NOTE
r-release-osx-x86_64 0.1.0.1 NOTE
r-oldrel-windows-ix86+x86_64 0.1.0.1 20.00 170.00 190.00 NOTE
r-oldrel-osx-x86_64 0.1.0.1 NOTE

Check Details

Version: 0.1.0.1
Check: examples
Result: ERROR
    Running examples in 'oceanmap-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: cust.colorbar
    > ### Title: defines colorbar settings for 'v.raster' and 'add.region'-calls.
    > ### Aliases: cust.colorbar
    > ### Keywords: internal
    >
    > ### ** Examples
    >
    > ## Example:
    > path <- system.file("test_files", package="oceanmap")
    > nfiles <- Sys.glob(paste0(path,'/herring*.nc')) # load sample-'.nc'-files
    > head(nfiles)
    [1] "/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/oceanmap/test_files/herring_lavae.nc"
    > rfile <- nc2raster(nfiles[1], varname='Conc', layer=1)
    File /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/oceanmap/test_files/herring_lavae.nc (NC_FORMAT_CLASSIC):
    
     1 variables (excluding dimension variables):
     float Conc[lon,lat,time]
     _FillValue: -1
    
     3 dimensions:
     lon Size:352
     lat Size:310
     time Size:4 *** is unlimited ***
     units: seconds since 2006-03-01 00:00:00
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    oceanmap
     --- call from context ---
    matrix2raster(z, x = lon, y = lat)
     --- call from argument ---
    if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
    } else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
    }
     --- R stacktrace ---
    where 1: matrix2raster(z, x = lon, y = lat)
    where 2: nc2raster(nfiles[1], varname = "Conc", layer = 1)
    
     --- value of length: 2 type: logical ---
    [1] FALSE TRUE
     --- function from context ---
    function (z, x, y, layer, proj = "+proj=longlat")
    {
     if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
     }
     else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
     }
     if (!missing(x) & !missing(y)) {
     raster::extent(h) <- raster::extent(c(range(x), range(y)))
     }
     else {
     warning("\nconverting without geographical coordinates!")
     }
     raster::projection(h) <- proj
     return(h)
    }
    <bytecode: 0x68c5678>
    <environment: namespace:oceanmap>
     --- function search by body ---
    Function matrix2raster in namespace oceanmap has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(z) == "array") { : the condition has length > 1
    Calls: nc2raster -> matrix2raster
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.0.1
Check: for non-standard things in the check directory
Result: NOTE
    Found the following files/directories:
     'Gulf_of_Lions.pdf'
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

Version: 0.1.0.1
Check: examples
Result: ERROR
    Running examples in ‘oceanmap-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: cust.colorbar
    > ### Title: defines colorbar settings for 'v.raster' and 'add.region'-calls.
    > ### Aliases: cust.colorbar
    > ### Keywords: internal
    >
    > ### ** Examples
    >
    > ## Example:
    > path <- system.file("test_files", package="oceanmap")
    > nfiles <- Sys.glob(paste0(path,'/herring*.nc')) # load sample-'.nc'-files
    > head(nfiles)
    [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/oceanmap/test_files/herring_lavae.nc"
    > rfile <- nc2raster(nfiles[1], varname='Conc', layer=1)
    File /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/oceanmap/test_files/herring_lavae.nc (NC_FORMAT_CLASSIC):
    
     1 variables (excluding dimension variables):
     float Conc[lon,lat,time]
     _FillValue: -1
    
     3 dimensions:
     lon Size:352
     lat Size:310
     time Size:4 *** is unlimited ***
     units: seconds since 2006-03-01 00:00:00
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    oceanmap
     --- call from context ---
    matrix2raster(z, x = lon, y = lat)
     --- call from argument ---
    if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
    } else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
    }
     --- R stacktrace ---
    where 1: matrix2raster(z, x = lon, y = lat)
    where 2: nc2raster(nfiles[1], varname = "Conc", layer = 1)
    
     --- value of length: 2 type: logical ---
    [1] FALSE TRUE
     --- function from context ---
    function (z, x, y, layer, proj = "+proj=longlat")
    {
     if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
     }
     else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
     }
     if (!missing(x) & !missing(y)) {
     raster::extent(h) <- raster::extent(c(range(x), range(y)))
     }
     else {
     warning("\nconverting without geographical coordinates!")
     }
     raster::projection(h) <- proj
     return(h)
    }
    <bytecode: 0x5583854045a0>
    <environment: namespace:oceanmap>
     --- function search by body ---
    Function matrix2raster in namespace oceanmap has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(z) == "array") { : the condition has length > 1
    Calls: nc2raster -> matrix2raster
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.0.1
Check: installed package size
Result: NOTE
     installed size is 6.2Mb
     sub-directories of 1Mb or more:
     R 1.5Mb
     test_files 4.2Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.1.0.1
Check: examples
Result: ERROR
    Running examples in ‘oceanmap-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: cust.colorbar
    > ### Title: defines colorbar settings for 'v.raster' and 'add.region'-calls.
    > ### Aliases: cust.colorbar
    > ### Keywords: internal
    >
    > ### ** Examples
    >
    > ## Example:
    > path <- system.file("test_files", package="oceanmap")
    > nfiles <- Sys.glob(paste0(path,'/herring*.nc')) # load sample-'.nc'-files
    > head(nfiles)
    [1] "/data/gannet/ripley/R/packages/tests-clang/oceanmap.Rcheck/oceanmap/test_files/herring_lavae.nc"
    > rfile <- nc2raster(nfiles[1], varname='Conc', layer=1)
    File /data/gannet/ripley/R/packages/tests-clang/oceanmap.Rcheck/oceanmap/test_files/herring_lavae.nc (NC_FORMAT_CLASSIC):
    
     1 variables (excluding dimension variables):
     float Conc[lon,lat,time]
     _FillValue: -1
    
     3 dimensions:
     lon Size:352
     lat Size:310
     time Size:4 *** is unlimited ***
     units: seconds since 2006-03-01 00:00:00
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    oceanmap
     --- call from context ---
    matrix2raster(z, x = lon, y = lat)
     --- call from argument ---
    if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
    } else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
    }
     --- R stacktrace ---
    where 1: matrix2raster(z, x = lon, y = lat)
    where 2: nc2raster(nfiles[1], varname = "Conc", layer = 1)
    
     --- value of length: 2 type: logical ---
    [1] FALSE TRUE
     --- function from context ---
    function (z, x, y, layer, proj = "+proj=longlat")
    {
     if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
     }
     else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
     }
     if (!missing(x) & !missing(y)) {
     raster::extent(h) <- raster::extent(c(range(x), range(y)))
     }
     else {
     warning("\nconverting without geographical coordinates!")
     }
     raster::projection(h) <- proj
     return(h)
    }
    <bytecode: 0x66c71a0>
    <environment: namespace:oceanmap>
     --- function search by body ---
    Function matrix2raster in namespace oceanmap has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(z) == "array") { : the condition has length > 1
    Calls: nc2raster -> matrix2raster
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.0.1
Check: examples
Result: ERROR
    Running examples in ‘oceanmap-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: cust.colorbar
    > ### Title: defines colorbar settings for 'v.raster' and 'add.region'-calls.
    > ### Aliases: cust.colorbar
    > ### Keywords: internal
    >
    > ### ** Examples
    >
    > ## Example:
    > path <- system.file("test_files", package="oceanmap")
    > nfiles <- Sys.glob(paste0(path,'/herring*.nc')) # load sample-'.nc'-files
    > head(nfiles)
    [1] "/data/gannet/ripley/R/packages/tests-devel/oceanmap.Rcheck/oceanmap/test_files/herring_lavae.nc"
    > rfile <- nc2raster(nfiles[1], varname='Conc', layer=1)
    File /data/gannet/ripley/R/packages/tests-devel/oceanmap.Rcheck/oceanmap/test_files/herring_lavae.nc (NC_FORMAT_CLASSIC):
    
     1 variables (excluding dimension variables):
     float Conc[lon,lat,time]
     _FillValue: -1
    
     3 dimensions:
     lon Size:352
     lat Size:310
     time Size:4 *** is unlimited ***
     units: seconds since 2006-03-01 00:00:00
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    oceanmap
     --- call from context ---
    matrix2raster(z, x = lon, y = lat)
     --- call from argument ---
    if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
    } else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
    }
     --- R stacktrace ---
    where 1: matrix2raster(z, x = lon, y = lat)
    where 2: nc2raster(nfiles[1], varname = "Conc", layer = 1)
    
     --- value of length: 2 type: logical ---
    [1] FALSE TRUE
     --- function from context ---
    function (z, x, y, layer, proj = "+proj=longlat")
    {
     if (class(z) == "array") {
     cat("\nconverting array to RasterStack object")
     if (missing(layer))
     layer <- 1:dim(z)[3]
     h <- raster()
     for (ts in layer) {
     h.add <- raster(t(z[, , ts])[ncol(z):1, ])
     h <- raster::addLayer(h, h.add)
     }
     }
     else {
     cat("\nconverting matrix to RasterLayer")
     h <- raster(t(z)[ncol(z):1, ])
     }
     if (!missing(x) & !missing(y)) {
     raster::extent(h) <- raster::extent(c(range(x), range(y)))
     }
     else {
     warning("\nconverting without geographical coordinates!")
     }
     raster::projection(h) <- proj
     return(h)
    }
    <bytecode: 0x708eab8>
    <environment: namespace:oceanmap>
     --- function search by body ---
    Function matrix2raster in namespace oceanmap has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(z) == "array") { : the condition has length > 1
    Calls: nc2raster -> matrix2raster
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc