CRAN Package Check Results for Package pedometrics

Last updated on 2020-01-20 05:47:21 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.6-6 18.09 45.01 63.10 ERROR
r-devel-linux-x86_64-debian-gcc 0.6-6 11.92 37.02 48.94 OK
r-devel-linux-x86_64-fedora-clang 0.6-6 85.31 NOTE
r-devel-linux-x86_64-fedora-gcc 0.6-6 83.72 NOTE
r-devel-windows-ix86+x86_64 0.6-6 48.00 130.00 178.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.6-6 35.00 124.00 159.00 OK
r-patched-linux-x86_64 0.6-6 14.09 42.56 56.65 OK
r-patched-solaris-x86 0.6-6 101.20 OK
r-release-linux-x86_64 0.6-6 13.92 43.63 57.55 OK
r-release-windows-ix86+x86_64 0.6-6 52.00 80.00 132.00 OK
r-release-osx-x86_64 0.6-6 OK
r-oldrel-windows-ix86+x86_64 0.6-6 29.00 85.00 114.00 OK
r-oldrel-osx-x86_64 0.6-6 OK

Check Details

Version: 0.6-6
Check: examples
Result: ERROR
    Running examples in 'pedometrics-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: cont2cat
    > ### Title: Stratification and categorization of continuous data
    > ### Aliases: breakPoints cont2cat stratify
    >
    > ### ** Examples
    >
    >
    > ## Compute the break points of marginal strata
    > x <- data.frame(x = round(rnorm(10), 1), y = round(rlnorm(10), 1))
    > x <- breakPoints(x = x, n = 4, type = "area", prop = TRUE)
    > x
    $breaks
    $breaks$x
    [1] -0.8 0.2 0.6 1.6
    
    $breaks$y
    [1] 0.1 0.5 1.5 2.6 4.5
    
    
    $prop
    $prop$x
    [1] 0.5 0.3 0.2
    
    $prop$y
    [1] 0.2 0.3 0.3 0.2
    
    
    >
    > ## Convert continuous data into categorical data
    > # Matrix
    > x <- y <- c(1:10)
    > x <- cbind(x, y)
    > breaks <- list(c(1, 2, 4, 8, 10), c(1, 5, 10))
    > y <- cont2cat(x, breaks)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    pedometrics
     --- call from context ---
    cont2cat(x, breaks)
     --- call from argument ---
    if (x_cl == "matrix") x <- as.matrix(x)
     --- R stacktrace ---
    where 1: cont2cat(x, breaks)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (x, breaks, integer = FALSE)
    {
     if (!requireNamespace("SpatialTools", quietly = TRUE)) {
     stop(paste("Package 'SpatialTools' needed for this function to work. ",
     "Please install it.", sep = ""), call. = FALSE)
     }
     x_cl <- class(x)
     x <- as.data.frame(x)
     n_col <- ncol(x)
     if (n_col == 1)
     breaks <- list(breaks)
     for (i in 1:n_col) {
     r <- range(x[, i], na.rm = TRUE)
     if (r[1] < min(breaks[[i]]))
     breaks[[i]] <- c(r[1], breaks[[i]])
     if (r[2] > max(breaks[[i]]))
     breaks[[i]] <- c(breaks[[i]], r[2])
     x[, i] <- cut(x = x[, i], breaks = breaks[[i]], include.lowest = TRUE,
     right = FALSE)
     }
     if (integer)
     x <- sapply(x, as.integer)
     if (n_col == 1)
     x <- as.vector(x)
     if (x_cl == "matrix")
     x <- as.matrix(x)
     return(x)
    }
    <bytecode: 0x50610c0>
    <environment: namespace:pedometrics>
     --- function search by body ---
    Function cont2cat in namespace pedometrics has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (x_cl == "matrix") x <- as.matrix(x) :
     the condition has length > 1
    Calls: cont2cat
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.6-6
Check: package dependencies
Result: NOTE
    Suggests orphaned package: ‘geoR’
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.6-6
Check: compiled code
Result: NOTE
    File ‘pedometrics/libs/pedometrics.so’:
     Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
    
    It is good practice to register native routines and to disable symbol
    search.
    
    See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc