CRAN Package Check Results for Package pscl

Last updated on 2019-12-08 23:47:34 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.5.2 14.67 97.27 111.94 ERROR
r-devel-linux-x86_64-debian-gcc 1.5.2 9.98 75.99 85.97 OK
r-devel-linux-x86_64-fedora-clang 1.5.2 138.41 OK
r-devel-linux-x86_64-fedora-gcc 1.5.2 128.41 OK
r-devel-windows-ix86+x86_64 1.5.2 38.00 209.00 247.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.5.2 35.00 213.00 248.00 OK
r-patched-linux-x86_64 1.5.2 10.50 92.69 103.19 OK
r-patched-solaris-x86 1.5.2 172.40 OK
r-release-linux-x86_64 1.5.2 10.28 94.70 104.98 OK
r-release-windows-ix86+x86_64 1.5.2 44.00 154.00 198.00 OK
r-release-osx-x86_64 1.5.2 NOTE
r-oldrel-windows-ix86+x86_64 1.5.2 42.00 127.00 169.00 OK
r-oldrel-osx-x86_64 1.5.2 OK

Check Details

Version: 1.5.2
Check: examples
Result: ERROR
    Running examples in 'pscl-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: rollcall
    > ### Title: create an object of class rollcall
    > ### Aliases: rollcall
    > ### Keywords: manip
    >
    > ### ** Examples
    >
    > ## generate some fake roll call data
    > set.seed(314159265)
    > fakeData <- matrix(sample(x=c(0,1),size=5000,replace=TRUE),
    + 50,100)
    > rc <- rollcall(fakeData)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    pscl
     --- call from context ---
    checkVotes(v, codes)
     --- call from argument ---
    if (class(object) == "rollcall") mat <- object$votes
     --- R stacktrace ---
    where 1: checkVotes(v, codes)
    where 2: rollcall(fakeData)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (object, codes = object$codes)
    {
     if (class(object) == "rollcall")
     mat <- object$votes
     if (class(object) == "matrix")
     mat <- object
     if (is.null(codes))
     stop("checkVotes: no codes supplied")
     flag <- FALSE
     if (!all(mat[!is.na(mat)] %in% unlist(codes))) {
     cat("checkVotes: Your data contains values other than the codes\n")
     cat("checkVotes: you supplied as representing Yea, Nay, Missing or\n")
     cat("checkVotes: not in legislature.\n")
     cat("checkVotes: You specified:\n")
     cat(paste("Yea: ", paste(as.character(codes$yea), collapse = " "),
     "\n", "Nay: ", paste(as.character(codes$nay), collapse = " "),
     "\n", "Missing: ", paste(as.character(codes$missing),
     collapse = " "), "\n", "Not In Legislature: ",
     paste(as.character(codes$notInLegis), collapse = " "),
     "\n", sep = ""))
     cat("checkVotes: Your data has the following unique values and frequency counts:\n")
     print(table(mat, exclude = NULL))
     cat("\n")
     flag <- TRUE
     }
     flag
    }
    <bytecode: 0x7288b18>
    <environment: namespace:pscl>
     --- function search by body ---
    Function checkVotes in namespace pscl has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(object) == "rollcall") mat <- object$votes :
     the condition has length > 1
    Calls: rollcall -> checkVotes
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.5.2
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘zoo’
Flavor: r-release-osx-x86_64