CRAN Package Check Results for Package pscl

Last updated on 2020-01-27 02:47:27 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.5.2 14.32 95.86 110.18 ERROR
r-devel-linux-x86_64-debian-gcc 1.5.2 8.12 76.14 84.26 OK
r-devel-linux-x86_64-fedora-clang 1.5.2 139.60 OK
r-devel-linux-x86_64-fedora-gcc 1.5.2 134.86 OK
r-devel-windows-ix86+x86_64 1.5.2 55.00 220.00 275.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.5.2 44.00 166.00 210.00 OK
r-patched-linux-x86_64 1.5.2 9.63 93.60 103.23 OK
r-patched-solaris-x86 1.5.2 170.10 OK
r-release-linux-x86_64 1.5.2 9.75 92.81 102.56 OK
r-release-windows-ix86+x86_64 1.5.2 31.00 167.00 198.00 OK
r-release-osx-x86_64 1.5.2 NOTE
r-oldrel-windows-ix86+x86_64 1.5.2 42.00 189.00 231.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: 0x718f578>
    <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