CRAN Package Check Results for Package trapezoid

Last updated on 2014-04-19 03:49:29.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0-0 0.97 14.57 15.54 OK
r-devel-linux-x86_64-debian-gcc 2.0-0 0.92 14.58 15.50 OK
r-devel-linux-x86_64-fedora-clang 2.0-0 31.74 OK
r-devel-linux-x86_64-fedora-gcc 2.0-0 30.52 OK
r-devel-macosx-x86_64-clang 2.0-0 37.54 OK
r-devel-macosx-x86_64-gcc 2.0-0 ERROR
r-devel-windows-ix86+x86_64 2.0-0 4.00 33.00 37.00 OK
r-patched-linux-x86_64 2.0-0 0.93 14.72 15.65 OK
r-patched-solaris-sparc 2.0-0 182.00 OK
r-patched-solaris-x86 2.0-0 44.40 OK
r-release-linux-ix86 2.0-0 3.00 31.00 34.00 OK
r-release-linux-x86_64 2.0-0 0.94 14.85 15.80 OK
r-release-windows-ix86+x86_64 2.0-0 4.00 31.00 35.00 OK
r-oldrel-windows-ix86+x86_64 2.0-0 5.00 32.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-devel-macosx-x86_64-gcc

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-devel-macosx-x86_64-gcc