Running ‘testthat.R’ [8s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #
  > # file: tests/testthat.R
  > #
  > # This file is part of the R-package decisionSupport
  > # 
  > # Authors: 
  > #   Lutz Göhring <lutz.goehring@gmx.de>
  > #   Eike Luedeling (ICRAF) <eike@eikeluedeling.com>
  > #
  > # Copyright (C) 2015 World Agroforestry Centre (ICRAF) 
  > #	http://www.worldagroforestry.org
  > # 
  > # The R-package decisionSupport is free software: you can redistribute it and/or modify
  > # it under the terms of the GNU General Public License as published by
  > # the Free Software Foundation, either version 3 of the License, or
  > # (at your option) any later version.
  > # 
  > # The R-package decisionSupport is distributed in the hope that it will be useful,
  > # but WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > # GNU General Public License for more details.
  > # 
  > # You should have received a copy of the GNU General Public License
  > # along with the R-package decisionSupport.  If not, see <http://www.gnu.org/licenses/>.
  > #
  > ##############################################################################################
  > library(testthat)
  > library(decisionSupport)
  > 
  > test_check("decisionSupport")
  1. Error: method="fit": Warning is generated if no median is supplied or for deviation from median (if supplied) (@test_estimate1d.R#58) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: expect_warning(x <- random(estimate1d("lnorm", lower, upper), n = n, method = method, 
         relativeTolerance = tolerance)) at testthat/test_estimate1d.R:58
  2: capture_warnings(object)
  3: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  4: random(estimate1d("lnorm", lower, upper), n = n, method = method, relativeTolerance = tolerance)
  5: random.estimate1d(estimate1d("lnorm", lower, upper), n = n, method = method, relativeTolerance = tolerance)
  6: rdistq_fit(distribution = rho[["distribution"]], n = n, percentiles = percentiles, 
         quantiles = as.numeric(quantiles), relativeTolerance = relativeTolerance, ...)
  7: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  2. Error: Standard normal distribution is generated correctly from the 0.05 and 0.95 quantiles (@test_rdistq_fit.R#44) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "norm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:44
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  3. Error: A normal distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#53) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "norm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:53
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  Error : Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  4. Error: A normal distribution is generated correctly from the 0.05 and 0.95 quantiles, if no warning occurs (1) (@test_rdistq_fit.R#64) 
  object 'x' not found
  1: expect_equal(mean(x), mean, tolerance = tolerance) at testthat/test_rdistq_fit.R:64
  2: compare(object, expected, ...)
  3: mean(x)
  
  5. Error: A normal distribution is generated correctly from the 0.05, 0.10, 0.17, 0.45 and 0.95 quantiles (@test_rdistq_fit.R#73) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "norm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:73
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  6. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#92) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "lnorm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:92
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  7. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (2) (@test_rdistq_fit.R#101) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "lnorm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:101
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  8. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (3) (@test_rdistq_fit.R#109) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "lnorm", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:109
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  9. Error: A uniform distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#119) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "unif", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:119
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  10. Error: A uniform distribution is generated correctly from the 0.05 and 0.95 quantiles (2) (@test_rdistq_fit.R#127) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "unif", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:127
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  11. Error: A uniform distribution is generated correctly from the 0.05 and 0.95 quantiles (3) (@test_rdistq_fit.R#135) 
  Package "rriskDistributions" needed. Please install it, e.g. from 
           http://cran.r-project.org/src/contrib/Archive/rriskDistributions/
  1: rdistq_fit(distribution = "unif", n = n, percentiles = percentiles, quantiles = quantiles) at testthat/test_rdistq_fit.R:135
  2: stop("Package \"rriskDistributions\" needed. Please install it, e.g. from \n         http://cran.r-project.org/src/contrib/Archive/rriskDistributions/", 
         call. = FALSE)
  
  testthat results ================================================================
  OK: 106 SKIPPED: 0 FAILED: 11
  1. Error: method="fit": Warning is generated if no median is supplied or for deviation from median (if supplied) (@test_estimate1d.R#58) 
  2. Error: Standard normal distribution is generated correctly from the 0.05 and 0.95 quantiles (@test_rdistq_fit.R#44) 
  3. Error: A normal distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#53) 
  4. Error: A normal distribution is generated correctly from the 0.05 and 0.95 quantiles, if no warning occurs (1) (@test_rdistq_fit.R#64) 
  5. Error: A normal distribution is generated correctly from the 0.05, 0.10, 0.17, 0.45 and 0.95 quantiles (@test_rdistq_fit.R#73) 
  6. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#92) 
  7. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (2) (@test_rdistq_fit.R#101) 
  8. Error: A log normal distribution is generated correctly from the 0.05 and 0.95 quantiles (3) (@test_rdistq_fit.R#109) 
  9. Error: A uniform distribution is generated correctly from the 0.05 and 0.95 quantiles (1) (@test_rdistq_fit.R#119) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted