CRAN Package Check Results for Package SpecsVerification

Last updated on 2020-01-18 08:00:02 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5-2 54.81 37.02 91.83 ERROR
r-devel-linux-x86_64-debian-gcc 0.5-2 34.23 34.29 68.52 OK
r-devel-linux-x86_64-fedora-clang 0.5-2 132.42 OK
r-devel-linux-x86_64-fedora-gcc 0.5-2 125.32 OK
r-devel-windows-ix86+x86_64 0.5-2 151.00 124.00 275.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.5-2 111.00 113.00 224.00 OK
r-patched-linux-x86_64 0.5-2 41.32 40.23 81.55 OK
r-patched-solaris-x86 0.5-2 132.20 OK
r-release-linux-x86_64 0.5-2 43.13 40.11 83.24 OK
r-release-windows-ix86+x86_64 0.5-2 146.00 108.00 254.00 OK
r-release-osx-x86_64 0.5-2 OK
r-oldrel-windows-ix86+x86_64 0.5-2 114.00 85.00 199.00 OK
r-oldrel-osx-x86_64 0.5-2 OK

Check Details

Version: 0.5-2
Check: examples
Result: ERROR
    Running examples in 'SpecsVerification-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: Detrend
    > ### Title: Auxiliary function for removing trends and mean from observation
    > ### vector or ensemble matrix.
    > ### Aliases: Detrend
    >
    > ### ** Examples
    >
    > data(eurotempforecast)
    > Detrend(ens)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    SpecsVerification
     --- call from context ---
    Detrend(ens)
     --- call from argument ---
    if (class(x) == "matrix") {
     xx <- rowMeans(x, na.rm = TRUE)
    } else {
     xx <- x
    }
     --- R stacktrace ---
    where 1: Detrend(ens)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (x, demean = TRUE)
    {
     if (class(x) == "matrix") {
     xx <- rowMeans(x, na.rm = TRUE)
     }
     else {
     xx <- x
     }
     N <- length(xx)
     if (N == 1) {
     trnd <- x
     }
     else {
     t <- 1:N
     lmod <- lm(xx ~ t)
     trnd <- drop(cbind(1, t) %*% coef(lmod))
     }
     m <- ifelse(demean, 0, mean(unlist(x), na.rm = TRUE))
     return(x - trnd + m)
    }
    <bytecode: 0x41ae140>
    <environment: namespace:SpecsVerification>
     --- function search by body ---
    Function Detrend in namespace SpecsVerification has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(x) == "matrix") { : the condition has length > 1
    Calls: Detrend
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang