CRAN Package Check Results for Package trapezoid

Last updated on 2015-05-30 13:47:39.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0-0 0.86 12.39 13.26 OK
r-devel-linux-x86_64-debian-gcc 2.0-0 0.84 12.17 13.01 OK
r-devel-linux-x86_64-fedora-clang 2.0-0 26.92 OK
r-devel-linux-x86_64-fedora-gcc 2.0-0 25.83 OK
r-devel-osx-x86_64-clang 2.0-0 33.90 OK
r-devel-windows-ix86+x86_64 2.0-0 5.00 29.00 34.00 OK
r-patched-linux-x86_64 2.0-0 0.84 12.54 13.38 OK
r-patched-solaris-sparc 2.0-0 172.80 OK
r-patched-solaris-x86 2.0-0 36.70 OK
r-release-linux-x86_64 2.0-0 0.86 12.52 13.38 OK
r-release-osx-x86_64-mavericks 2.0-0 OK
r-release-osx-x86_64-snowleopard 2.0-0 ERROR
r-release-windows-ix86+x86_64 2.0-0 6.00 29.00 35.00 OK
r-oldrel-windows-ix86+x86_64 2.0-0 6.00 31.00 37.00 OK

Check Details

Version: 2.0-0
Check: package dependencies
Result: NOTE
    Package suggested but not available for checking: ‘ggplot2’
Flavor: r-release-osx-x86_64-snowleopard

Version: 2.0-0
Check: examples
Result: ERROR
    Running examples in ‘trapezoid-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: trapezoid
    > ### Title: The Trapezoidal Distribution
    > ### Aliases: Trapezoid trapezoid dtrapezoid ptrapezoid qtrapezoid
    > ### rtrapezoid
    > ### Keywords: distribution
    >
    > ### ** Examples
    >
    > ## Plot default trapezoid distribution
    > curve(dtrapezoid(x, min = 0, mode1 = 1/3, mode2 = 2/3, max = 1,
    + n1 = 2, n3 = 2, alpha = 1), from = 0, to = 1)
    >
    >
    > ## Plot triangular trapezoid distribution
    > curve(dtrapezoid(x, min = 0, mode1 = 1/2, mode2 = 1/2, max = 1,
    + n1 = 2, n3 = 2, alpha = 1), from = 0, to = 1)
    >
    >
    > ## Explore effects of n1, n3, and alpha parameters
    > # plyr and ggplot2 are required for this example
    > require(plyr)
    Loading required package: plyr
    > require(ggplot2)
    Loading required package: ggplot2
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called ‘ggplot2’
    >
    > x <- seq(from = 0, to = 1, by = 0.01)
    >
    > # Create a list of arguments, varying n1, n3, and alpha
    > arguments <- list()
    > arguments[['A']] <- list(x = x, n1 = 2, n3 = 2, alpha = 0.8)
    > arguments[['B']] <- list(x = x, n1 = 1.5, n3 = 1.5, alpha = 1)
    > arguments[['C']] <- list(x = x, n1 = 2.5, n3 = 2.5, alpha = 1.5)
    > arguments[['D']] <- list(x = x, n1 = 1.5, n3 = 2.5, alpha = 0.5)
    > arguments[['E']] <- list(x = x, n1 = 2.5, n3 = 1.5, alpha = 1)
    > arguments[['F']] <- list(x = x, n1 = 0.5, n3 = 0.5, alpha = 1.5)
    > arguments[['G']] <- list(x = x, n1 = 1.5, n3 = 0.5, alpha = 0.5)
    > arguments[['H']] <- list(x = x, n1 = 2.5, n3 = 0.5, alpha = 1)
    > arguments[['I']] <- list(x = x, n1 = 0.5, n3 = 1.5, alpha = 1.5)
    > arguments[['J']] <- list(x = x, n1 = 0.5, n3 = 2.5, alpha = 0.5)
    >
    > # Calculate the distributions
    > plot.data <- ldply(arguments, function(z)
    + {
    + x <- z$x
    + density <- dtrapezoid(x = z$x, min = 0, mode1 = 0.2, mode2 = 0.8,
    + max = 1, n1 = z$n1, n3 = z$n3, alpha = z$alpha)
    + args <- paste("n1 = ", z$n1, ", n3 = ", z$n3, ", alpha = ", z$alpha,
    + sep="", collapse="")
    + out <- data.frame(x, density, args)
    + })
    >
    > # Create labels for later use in displaying the arguments on the plots
    > plot.data$label <- paste(plot.data$.id, ": ", plot.data$args, sep="")
    >
    > # Create plots
    > generalizedTrapezoids <- ggplot(data = plot.data, aes(x = x, y = density)) +
    + geom_line() + theme_bw() +
    + facet_wrap(~label, ncol = 2, scales = "free_y")
    Error: could not find function "ggplot"
    Execution halted
Flavor: r-release-osx-x86_64-snowleopard

Version: 2.0-0
Check: running R code from vignettes
Result: ERROR
    Errors in running code in vignettes:
    when running code in ‘trapezoid.Rnw’
     ...
    
    > density <- dtrapezoid(x, min = 0, mode1 = 1/3, mode2 = 2/3,
    + max = 1, n1 = 2, n3 = 2, alpha = 1)
    
    > trapezoid <- ggplot(data = data.frame(x, density),
    + aes(x = x, y = density)) + geom_line() + theme_bw()
    
     When sourcing ‘trapezoid.R’:
    Error: could not find function "ggplot"
    Execution halted
Flavor: r-release-osx-x86_64-snowleopard

Version: 2.0-0
Check: re-building of vignette outputs
Result: NOTE
    Error in re-building vignettes:
     ...
    Loading required package: trapezoid
    Loading required package: plyr
    Loading required package: ggplot2
    Warning in library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
     there is no package called ‘ggplot2’
    
    Error: processing vignette 'trapezoid.Rnw' failed with diagnostics:
     chunk 2 (label = trapezoid)
    Error in eval(expr, envir, enclos) : could not find function "ggplot"
    Execution halted
Flavor: r-release-osx-x86_64-snowleopard