CRAN Package Check Results for Package lfstat

Last updated on 2016-05-27 19:49:12.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-gcc 0.8.0 1.62 36.52 38.14 OK
r-devel-linux-x86_64-fedora-clang 0.8.0 77.08 OK
r-devel-linux-x86_64-fedora-gcc 0.8.0 67.74 OK
r-devel-osx-x86_64-clang 0.8.0 82.91 OK
r-devel-windows-ix86+x86_64 0.8.0 6.00 83.00 89.00 OK
r-patched-linux-x86_64 0.8.0 1.58 35.99 37.57 OK
r-patched-solaris-sparc 0.8.0 468.80 OK
r-patched-solaris-x86 0.8.0 104.50 OK
r-release-linux-x86_64 0.8.0 1.66 36.84 38.50 OK
r-release-osx-x86_64-mavericks 0.8.0 ERROR
r-release-windows-ix86+x86_64 0.8.0 9.00 85.00 94.00 OK

Check Details

Version: 0.8.0
Check: examples
Result: ERROR
    Running examples in ‘lfstat-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: tyears
    > ### Title: Calculate Low-Flow Quantiles for given Return Periods
    > ### Aliases: tyears
    > ### Keywords: low-flow fitting
    >
    > ### ** Examples
    >
    > data("ngaruroro")
    > ng <- subset(ngaruroro, hyear %in% 1964:2000)
    >
    > # vector of return periods
    > rp <- c(1.5, 5, 10, 100)
    >
    > # Fitting some distributions for the low flows (annual minima)
    > # and estimating the quantile for arbitrary return periods
    > y <- tyears(ng, dist = c("gum", "wei", "ln3", "pe3"), event = rp,
    + plot = FALSE)
    Warning in evfit(x = minima, distribution = dist, zeta = zeta, check = check, :
     Estimation of parameter zeta in the 'ln3' distribution resulted in a negative value (-1.06). As this is not meaningful for discharges, parameter estimation was done with a forced lower bound of '0'. To override this behavior, consider setting the 'zeta' argument explicitly when calling the function.
    >
    > # print()ing the object shows just the return periods
    > y
     distribution
    return period gum wei ln3 pe3
     1.5 4.376632 4.478546 4.439131 4.460596
     5 3.365623 3.332267 3.361264 3.359527
     10 3.102974 3.016033 3.053065 3.035554
     100 2.594650 2.496776 2.429653 2.374532
    >
    > # but y is actually a list
    > str(y)
    List of 7
     $ freq.zeros : num 0
     $ parameters :List of 4
     ..$ gum: Named num [1:2] 3.715 0.733
     .. ..- attr(*, "names")= chr [1:2] "xi" "alpha"
     ..$ wei: Named num [1:3] 2.21 2.17 2.26
     .. ..- attr(*, "names")= chr [1:3] "zeta" "beta" "delta"
     ..$ ln3: Named num [1:3] 0 1.396 0.219
     .. ..- attr(*, "names")= chr [1:3] "zeta" "mu" "sigma"
     ..$ pe3: Named num [1:3] 4.138 0.909 0.519
     .. ..- attr(*, "names")= chr [1:3] "mu" "sigma" "gamma"
     $ lmom : Named num [1:4] 4.1379 0.5083 0.0848 0.1602
     ..- attr(*, "names")= chr [1:4] "l_1" "l_2" "t_3" "t_4"
     $ values : num [1:38(1d)] 6.4 3.34 4.8 5.02 4.82 ...
     ..- attr(*, "dimnames")=List of 1
     .. ..$ : chr [1:38] "1963" "1964" "1965" "1966" ...
     $ is.censored : logi FALSE
     $ extreme : chr "minimum"
     $ T_Years_Event: num [1:4, 1:4] 4.38 3.37 3.1 2.59 4.48 ...
     ..- attr(*, "dimnames")=List of 2
     .. ..$ return period: chr [1:4] "1.5" "5" "10" "100"
     .. ..$ distribution : chr [1:4] "gum" "wei" "ln3" "pe3"
     - attr(*, "class")= chr [1:2] "evfit" "list"
    >
    > # there is a summary method, returning L-moments and estimated parameters
    > summary(y)
    Values: num [1:38(1d)] 6.4 3.34 4.8 5.02 4.82 ...
    
    
    L-Moments:
     l_1 l_2 t_3 t_4
    4.13792105 0.50832361 0.08475455 0.16022300
    
    Fitted Parameters of the Distribution:
    gum xi: 3.71462, alpha: 0.733356
    wei zeta: 2.21255, beta: 2.17368, delta: 2.26117
    ln3 zeta: 0, mu: 1.3963, sigma: 0.218605
    pe3 mu: 4.13792, sigma: 0.908585, gamma: 0.518669
    >
    > plot(y)
    >
    >
    > # fitting just one distribution, with annotated quantiles
    > z <- tyears(ng, dist = c("gevR"), event = rp)
    > rpline(y, return.period = rp, suffix = c("a", "m\u00B3"))
    >
    >
    > # applying a moving average before fitting
    > ng2 <- ng
    > ng2$flow <- ma(ng2$flow, n = 4)
    > tyears(ng2, dist = c("gum", "wei", "ln3", "pe3"), event = rp,
    + plot = FALSE)
    Warning in FUN(X[[i]], ...) :
     no non-missing arguments to min; returning Inf
    Error in samlmu(xx) : NA/NaN/Inf in foreign function call (arg 1)
    Calls: tyears -> evfit -> samlmu -> .Fortran
    Execution halted
Flavor: r-release-osx-x86_64-mavericks

Version: 0.8.0
Check: tests
Result: ERROR
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     1. Failure: water_year() interprets the origin argument correctly (@test-utils.R#11)
     2. Failure: water_year() interprets the origin argument correctly (@test-utils.R#15)
     3. Failure: water_year() interprets the origin argument correctly (@test-utils.R#19)
     4. Failure: water_year() interprets the origin argument correctly (@test-utils.R#21)
     5. Failure: water_year() interprets the origin argument correctly (@test-utils.R#25)
     6. Failure: water_year() interprets the origin argument correctly (@test-utils.R#27)
     7. Failure: water_year() interprets the assign argument correctly (@test-utils.R#33)
     8. Failure: water_year() interprets the assign argument correctly (@test-utils.R#35)
     9. Failure: water_year() interprets the assign argument correctly (@test-utils.R#38)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-osx-x86_64-mavericks