CRAN Package Check Results for Package pbapply

Last updated on 2016-05-04 11:39:01.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-gcc 1.2-1 0.76 35.57 36.33 OK
r-devel-linux-x86_64-fedora-clang 1.2-1 21.55 OK
r-devel-linux-x86_64-fedora-gcc 1.2-1 19.76 OK
r-devel-osx-x86_64-clang 1.2-1 50.78 OK
r-devel-windows-ix86+x86_64 1.2-1 3.00 51.00 54.00 OK
r-patched-linux-x86_64 1.2-1 0.66 35.39 36.05 OK
r-patched-solaris-sparc 1.2-1 128.60 OK
r-patched-solaris-x86 1.2-1 30.40 OK
r-release-linux-x86_64 1.2-1 4.57 35.49 40.06 OK
r-release-osx-x86_64-mavericks 1.2-1 NOTE
r-release-windows-ix86+x86_64 1.2-1 2.00 55.00 57.00 OK
r-oldrel-windows-ix86+x86_64 1.1-2 4.00 17.00 21.00 ERROR

Check Details

Version: 1.2-1
Check: dependencies in R code
Result: NOTE
    Invalid MIT-MAGIC-COOKIE-1 key
Flavor: r-release-osx-x86_64-mavericks

Version: 1.1-2
Check: R code for possible problems
Result: NOTE
    pbapply: no visible global function definition for 'forceAndCall'
Flavor: r-oldrel-windows-ix86+x86_64

Version: 1.1-2
Check: examples
Result: ERROR
    Running examples in 'pbapply-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: pbapply
    > ### Title: Adding Progress Bar to '*apply' Functions
    > ### Aliases: pbapply pbsapply pblapply pbreplicate
    > ### Keywords: manip utilities
    >
    > ### ** Examples
    >
    > ## --- simple linear model simulation ---
    > n <- 200
    > x <- rnorm(n)
    > y <- rnorm(n, model.matrix(~x) %*% c(0,1), sd=0.5)
    > d <- data.frame(y, x)
    > ## model fitting and bootstrap
    > mod <- lm(y~x, d)
    > ndat <- model.frame(mod)
    > B <- 100
    > bid <- sapply(1:B, function(i) sample(nrow(ndat), nrow(ndat), TRUE))
    > fun <- function(z) {
    + ndat <- ndat[sample(nrow(ndat), nrow(ndat), TRUE),]
    + coef(lm(mod$call$formula, data=ndat[z,]))
    + }
    > ## standard '*apply' functions
    > system.time(res1 <- lapply(1:B, function(i) fun(bid[,i])))
     user system elapsed
     0.25 0.01 0.26
    > system.time(res2 <- sapply(1:B, function(i) fun(bid[,i])))
     user system elapsed
     0.30 0.00 0.29
    > system.time(res3 <- apply(bid, 2, fun))
     user system elapsed
     0.26 0.00 0.27
    > ## 'pb*apply' functions
    > ## try different settings:
    > ## "none", "txt", "tk"
    > options("pbapply.pb"="txt")
    > system.time(res4 <- pblapply(1:B, function(i) fun(bid[,i])))
     user system elapsed
     0.26 0.00 0.26
    > system.time(res5 <- pbsapply(1:B, function(i) fun(bid[,i])))
     user system elapsed
     0.31 0.00 0.31
    > system.time(res6 <- pbapply(bid, 2, fun))
    Error: could not find function "forceAndCall"
    Timing stopped at: 0 0 0
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64