CRAN Package Check Results for Package mopa

Last updated on 2019-11-26 00:51:58 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 15.52 143.22 158.74 ERROR
r-devel-linux-x86_64-debian-gcc 1.0.1 16.51 118.45 134.96 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.1 240.89 OK
r-devel-linux-x86_64-fedora-gcc 1.0.1 229.57 OK
r-devel-windows-ix86+x86_64 1.0.1 47.00 233.00 280.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.0.1 33.00 179.00 212.00 OK
r-patched-linux-x86_64 1.0.1 16.16 176.64 192.80 OK
r-patched-solaris-x86 1.0.1 315.80 OK
r-release-linux-x86_64 1.0.1 17.18 178.22 195.40 OK
r-release-windows-ix86+x86_64 1.0.1 39.00 223.00 262.00 OK
r-release-osx-x86_64 1.0.1 OK
r-oldrel-windows-ix86+x86_64 1.0.1 19.00 229.00 248.00 OK
r-oldrel-osx-x86_64 1.0.1 OK

Check Details

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in 'mopa-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: OCSVMprofiling
    > ### Title: Environmental profiling with One-Classification Support Vector
    > ### Machine
    > ### Aliases: OCSVMprofiling
    >
    > ### ** Examples
    >
    > ## Load presence data
    > data(Oak_phylo2)
    >
    > ## Load climate data
    > destfile <- tempfile()
    > data.url <- "https://raw.githubusercontent.com/SantanderMetGroup/mopa/master/data/biostack.rda"
    > download.file(data.url, destfile)
    trying URL 'https://raw.githubusercontent.com/SantanderMetGroup/mopa/master/data/biostack.rda'
    Content type 'application/octet-stream' length 6885444 bytes (6.6 MB)
    ==================================================
    downloaded 6.6 MB
    
    > load(destfile, verbose = TRUE)
    Loading objects:
     biostack
    >
    > ## Spatial reference
    > projection(biostack$baseline) <- CRS("+proj=longlat +init=epsg:4326")
    > r <- biostack$baseline[[1]]
    > ## Background of the whole study area
    > bg <- backgroundGrid(r)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    mopa
     --- call from context ---
    boundingCoords(coordinates(sp_grid))
     --- call from argument ---
    if (class(xy) == "matrix") xy <- as.data.frame(xy)
     --- R stacktrace ---
    where 1: boundingCoords(coordinates(sp_grid))
    where 2: backgroundGrid(r)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (xy)
    {
     if (class(xy) == "matrix")
     xy <- as.data.frame(xy)
     if (class(xy) == "data.frame") {
     pres.list <- list(xy)
     }
     else {
     pres.list <- xy
     }
     box <- numeric()
     l.box <- list()
     for (i in 1:length(pres.list)) {
     length(l.box) <- i
     box[1] <- min(pres.list[[i]][, 1])
     box[2] <- max(pres.list[[i]][, 1])
     box[3] <- min(pres.list[[i]][, 2])
     box[4] <- max(pres.list[[i]][, 2])
     l.box[[i]] <- box
     }
     names(l.box) <- names(pres.list)
     return(l.box)
    }
    <bytecode: 0xb129358>
    <environment: namespace:mopa>
     --- function search by body ---
    Function boundingCoords in namespace mopa has this body.
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in ‘mopa-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: OCSVMprofiling
    > ### Title: Environmental profiling with One-Classification Support Vector
    > ### Machine
    > ### Aliases: OCSVMprofiling
    >
    > ### ** Examples
    >
    > ## Load presence data
    > data(Oak_phylo2)
    >
    > ## Load climate data
    > destfile <- tempfile()
    > data.url <- "https://raw.githubusercontent.com/SantanderMetGroup/mopa/master/data/biostack.rda"
    > download.file(data.url, destfile)
    trying URL 'https://raw.githubusercontent.com/SantanderMetGroup/mopa/master/data/biostack.rda'
    Content type 'application/octet-stream' length 6885444 bytes (6.6 MB)
    ==================================================
    downloaded 6.6 MB
    
    > load(destfile, verbose = TRUE)
    Loading objects:
     biostack
    >
    > ## Spatial reference
    > projection(biostack$baseline) <- CRS("+proj=longlat +init=epsg:4326")
    > r <- biostack$baseline[[1]]
    > ## Background of the whole study area
    > bg <- backgroundGrid(r)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    mopa
     --- call from context ---
    boundingCoords(coordinates(sp_grid))
     --- call from argument ---
    if (class(xy) == "matrix") xy <- as.data.frame(xy)
     --- R stacktrace ---
    where 1: boundingCoords(coordinates(sp_grid))
    where 2: backgroundGrid(r)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (xy)
    {
     if (class(xy) == "matrix")
     xy <- as.data.frame(xy)
     if (class(xy) == "data.frame") {
     pres.list <- list(xy)
     }
     else {
     pres.list <- xy
     }
     box <- numeric()
     l.box <- list()
     for (i in 1:length(pres.list)) {
     length(l.box) <- i
     box[1] <- min(pres.list[[i]][, 1])
     box[2] <- max(pres.list[[i]][, 1])
     box[3] <- min(pres.list[[i]][, 2])
     box[4] <- max(pres.list[[i]][, 2])
     l.box[[i]] <- box
     }
     names(l.box) <- names(pres.list)
     return(l.box)
    }
    <bytecode: 0x55bd7a4cd458>
    <environment: namespace:mopa>
     --- function search by body ---
    Function boundingCoords in namespace mopa has this body.
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-gcc