CRAN Package Check Results for Package agridat

Last updated on 2014-04-20 17:46:53.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.8 4.64 82.64 87.28 NOTE
r-devel-linux-x86_64-debian-gcc 1.8 4.91 82.66 87.57 NOTE
r-devel-linux-x86_64-fedora-clang 1.8 187.52 NOTE
r-devel-linux-x86_64-fedora-gcc 1.8 183.89 NOTE
r-devel-macosx-x86_64-clang 1.8 133.52 NOTE
r-devel-macosx-x86_64-gcc 1.8 ERROR
r-devel-windows-ix86+x86_64 1.8 13.00 118.00 131.00 NOTE
r-patched-linux-x86_64 1.8 4.61 81.66 86.27 NOTE
r-patched-solaris-sparc 1.8 998.30 NOTE
r-patched-solaris-x86 1.8 213.60 NOTE
r-release-linux-ix86 NOTE
r-release-linux-x86_64 1.8 4.56 81.79 86.35 NOTE
r-release-windows-ix86+x86_64 1.8 18.00 120.00 138.00 NOTE
r-oldrel-windows-ix86+x86_64 1.8 14.00 119.00 133.00 NOTE

Check Details

Version: 1.8
Check: dependencies in R code
Result: NOTE
    Packages in Depends field not imported from:
     ‘lattice’ ‘reshape2’
     These packages need to be imported from (in the NAMESPACE file)
     for when this namespace is loaded but not attached.
    See the information on DESCRIPTION files in the chapter ‘Creating R
    packages’ of the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-macosx-x86_64-clang, r-devel-macosx-x86_64-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-sparc, r-patched-solaris-x86, r-release-linux-ix86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.8
Check: package dependencies
Result: NOTE
    Packages suggested but not available for checking:
     ‘agricolae’ ‘car’ ‘corrgram’ ‘FrF2’ ‘gstat’ ‘HH’ ‘latticeExtra’
Flavor: r-devel-macosx-x86_64-gcc

Version: 1.8
Check: examples
Result: ERROR
    Running examples in ‘agridat-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: beall.borers
    > ### Title: Corn borer infestation under four treatments
    > ### Aliases: beall.borers
    > ### Keywords: datasets
    >
    > ### ** Examples
    >
    > dat <- beall.borers
    >
    > # Add 0 frequencies
    > dat0 <- expand.grid(borers=0:26, treat=c('T1','T2','T3','T4'))
    > dat0 <- merge(dat0,dat, all=TRUE)
    > dat0$freq[is.na(dat0$freq)] <- 0
    >
    > # Expand to individual (non-aggregated) counts for each hill
    > dd <- data.frame(borers = rep(dat0$borers, times=dat0$freq),
    + treat = rep(dat0$treat, times=dat0$freq))
    >
    > library(lattice)
    > histogram(~borers|treat, dd, type='count', breaks=0:27-.5,
    + layout=c(1,4), main="beall.borers", xlab="Borers per hill")
    >
    >
    > library(MASS)
    > m1 <- glm.nb(borers~0+treat, data=dd)
    > # Bliss, table 3, presents treatment means, which are matched by:
    > exp(coef(m1)) # 4.033333 3.166667 1.483333 1.508333
     treatT1 treatT2 treatT3 treatT4
    4.033333 3.166667 1.483333 1.508333
    > # Bliss gives treatment values k = c(1.532,1.764,1.333,1.190).
    > # The mean of these is 1.45, similar to this across-treatment estimate
    > m1$theta # 1.47
    [1] 1.47145
    >
    >
    > # Plot observed and expected distributions for treatment 2
    > xx <- 0:26
    > yy <- dnbinom(0:26, mu=3.17, size=1.47)*120 # estimates are from glm.nb
    > library(latticeExtra)
    Error in library(latticeExtra) :
     there is no package called ‘latticeExtra’
    Execution halted
Flavor: r-devel-macosx-x86_64-gcc