CRAN Package Check Results for Package Hmisc

Last updated on 2016-05-01 20:47:23.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-gcc 3.17-3 7.31 132.81 140.11 ERROR
r-devel-linux-x86_64-fedora-clang 3.17-3 261.32 ERROR
r-devel-linux-x86_64-fedora-gcc 3.17-3 160.58 ERROR
r-devel-osx-x86_64-clang 3.17-3 293.92 ERROR
r-devel-windows-ix86+x86_64 3.17-3 26.00 299.00 325.00 OK
r-patched-linux-x86_64 3.17-3 7.57 136.06 143.63 OK
r-patched-solaris-sparc 3.17-3 1681.80 OK
r-patched-solaris-x86 3.17-3 293.70 OK
r-release-linux-x86_64 3.17-3 8.25 141.17 149.43 OK
r-release-osx-x86_64-mavericks 3.17-3 OK
r-release-windows-ix86+x86_64 3.17-3 47.00 288.00 335.00 OK
r-oldrel-windows-ix86+x86_64 3.17-3 48.00 411.00 459.00 OK

Check Details

Version: 3.17-3
Check: examples
Result: ERROR
    Running examples in ‘Hmisc-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: summaryP
    > ### Title: Multi-way Summary of Proportions
    > ### Aliases: summaryP plot.summaryP ggplot.summaryP latex.summaryP
    > ### Keywords: hplot category manip
    >
    > ### ** Examples
    >
    > n <- 100
    > f <- function(na=FALSE) {
    + x <- sample(c('N', 'Y'), n, TRUE)
    + if(na) x[runif(100) < .1] <- NA
    + x
    + }
    > set.seed(1)
    > d <- data.frame(x1=f(), x2=f(), x3=f(), x4=f(), x5=f(), x6=f(), x7=f(TRUE),
    + age=rnorm(n, 50, 10),
    + race=sample(c('Asian', 'Black/AA', 'White'), n, TRUE),
    + sex=sample(c('Female', 'Male'), n, TRUE),
    + treat=sample(c('A', 'B'), n, TRUE),
    + region=sample(c('North America','Europe'), n, TRUE))
    > d <- upData(d, labels=c(x1='MI', x2='Stroke', x3='AKI', x4='Migraines',
    + x5='Pregnant', x6='Other event', x7='MD withdrawal',
    + race='Race', sex='Sex'))
    Input object size: 12352 bytes; 12 variables 100 observations
    New object size: 14832 bytes; 12 variables 100 observations
    > dasna <- subset(d, region=='North America')
    > with(dasna, table(race, treat))
     treat
    race A B
     Asian 8 8
     Black/AA 8 13
     White 8 7
    > s <- summaryP(race + sex + ynbind(x1, x2, x3, x4, x5, x6, x7, label='Exclusions') ~
    + region + treat, data=d)
    Error in 1:d[2] : argument of length 0
    Calls: summaryP ... xtfrm.default -> as.vector -> rank -> .gt -> [ -> [.ynbind
    Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-osx-x86_64-clang