CRAN Package Check Results for Package energy

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

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.7-6 76.16 32.99 109.15 ERROR
r-devel-linux-x86_64-debian-gcc 1.7-6 48.79 26.66 75.45 ERROR
r-devel-linux-x86_64-fedora-clang 1.7-6 152.46 OK
r-devel-linux-x86_64-fedora-gcc 1.7-6 136.76 OK
r-devel-windows-ix86+x86_64 1.7-6 208.00 87.00 295.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.7-6 209.00 69.00 278.00 OK
r-patched-linux-x86_64 1.7-6 56.03 33.78 89.81 OK
r-patched-solaris-x86 1.7-6 132.40 OK
r-release-linux-x86_64 1.7-6 54.67 34.03 88.70 OK
r-release-windows-ix86+x86_64 1.7-6 165.00 71.00 236.00 OK
r-release-osx-x86_64 1.7-6 OK
r-oldrel-windows-ix86+x86_64 1.7-6 142.00 83.00 225.00 OK
r-oldrel-osx-x86_64 1.7-6 OK

Check Details

Version: 1.7-6
Check: examples
Result: ERROR
    Running examples in 'energy-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: dcor.ttest
    > ### Title: Distance Correlation t-Test
    > ### Aliases: dcor.ttest dcor.t
    > ### Keywords: htest multivariate nonparametric
    >
    > ### ** Examples
    >
    > x <- matrix(rnorm(100), 10, 10)
    > y <- matrix(runif(100), 10, 10)
    > dx <- dist(x)
    > dy <- dist(y)
    > dcor.t(x, y)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    energy
     --- call from context ---
    BCDCOR(x, y, distance)
     --- call from argument ---
    if (class(x) == "dist") distance[1] <- TRUE
     --- R stacktrace ---
    where 1: BCDCOR(x, y, distance)
    where 2: dcor.t(x, y)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (x, y, distance = FALSE)
    {
     if (length(distance) < 2)
     distance <- rep(distance, 2)
     if (class(x) == "dist")
     distance[1] <- TRUE
     if (class(y) == "dist")
     distance[2] <- TRUE
     if (distance[1] == FALSE)
     x <- dist(x)
     if (distance[2] == FALSE)
     y <- dist(y)
     x <- as.matrix(x)
     y <- as.matrix(y)
     if (distance[1] && !isSymmetric(x))
     stop("distance==TRUE but x is not a dist object or a distance matrix")
     if (distance[2] && !isSymmetric(y))
     stop("distance==TRUE but y is not a dist object or a distance matrix")
     n <- NROW(x)
     AA <- Astar(x)
     BB <- Astar(y)
     XY <- sum(AA * BB) - (n/(n - 2)) * sum(diag(AA * BB))
     XX <- sum(AA * AA) - (n/(n - 2)) * sum(diag(AA * AA))
     YY <- sum(BB * BB) - (n/(n - 2)) * sum(diag(BB * BB))
     list(bcR = XY/sqrt(XX * YY), XY = XY/n^2, XX = XX/n^2, YY = YY/n^2,
     n = n)
    }
    <bytecode: 0x64a680>
    <environment: namespace:energy>
     --- function search by body ---
    Function BCDCOR in namespace energy has this body.
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.7-6
Check: examples
Result: ERROR
    Running examples in ‘energy-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: dcor.ttest
    > ### Title: Distance Correlation t-Test
    > ### Aliases: dcor.ttest dcor.t
    > ### Keywords: htest multivariate nonparametric
    >
    > ### ** Examples
    >
    > x <- matrix(rnorm(100), 10, 10)
    > y <- matrix(runif(100), 10, 10)
    > dx <- dist(x)
    > dy <- dist(y)
    > dcor.t(x, y)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    energy
     --- call from context ---
    BCDCOR(x, y, distance)
     --- call from argument ---
    if (class(x) == "dist") distance[1] <- TRUE
     --- R stacktrace ---
    where 1: BCDCOR(x, y, distance)
    where 2: dcor.t(x, y)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (x, y, distance = FALSE)
    {
     if (length(distance) < 2)
     distance <- rep(distance, 2)
     if (class(x) == "dist")
     distance[1] <- TRUE
     if (class(y) == "dist")
     distance[2] <- TRUE
     if (distance[1] == FALSE)
     x <- dist(x)
     if (distance[2] == FALSE)
     y <- dist(y)
     x <- as.matrix(x)
     y <- as.matrix(y)
     if (distance[1] && !isSymmetric(x))
     stop("distance==TRUE but x is not a dist object or a distance matrix")
     if (distance[2] && !isSymmetric(y))
     stop("distance==TRUE but y is not a dist object or a distance matrix")
     n <- NROW(x)
     AA <- Astar(x)
     BB <- Astar(y)
     XY <- sum(AA * BB) - (n/(n - 2)) * sum(diag(AA * BB))
     XX <- sum(AA * AA) - (n/(n - 2)) * sum(diag(AA * AA))
     YY <- sum(BB * BB) - (n/(n - 2)) * sum(diag(BB * BB))
     list(bcR = XY/sqrt(XX * YY), XY = XY/n^2, XX = XX/n^2, YY = YY/n^2,
     n = n)
    }
    <bytecode: 0x558786cca9d8>
    <environment: namespace:energy>
     --- function search by body ---
    Function BCDCOR in namespace energy has this body.
     ----------- END OF FAILURE REPORT --------------
    Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-gcc