Running ‘testthat.R’ [344s/309s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(distr6)
  
  -----------------------------
  	distr6 v 1.3.6
  
  Get started:	?distr6
  Changelog:	distr6News()
  -----------------------------
  
  
  Attaching package: 'distr6'
  
  The following object is masked from 'package:stats':
  
      qqplot
  
  The following object is masked from 'package:grDevices':
  
      pdf
  
  The following objects are masked from 'package:base':
  
      mode, truncate
  
  > 
  > test_check("distr6")
  ── 1. Failure: properties & traits (@test-DistCauchy.R#20)  ────────────────────
  Cauchy$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 2. Failure: properties & traits (@test-DistCauchy.R#21)  ────────────────────
  Cauchy$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 3. Failure: properties & traits (@test-DistChiSquared.R#18)  ────────────────
  ChiSquared$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 4. Failure: properties & traits (@test-DistChiSquared.R#20)  ────────────────
  ChiSquared$new(df = 2)$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 5. Failure: properties & traits (@test-DistChiSquaredNoncentral.R#20)  ──────
  ChiSquaredNoncentral$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 6. Failure: properties & traits (@test-DistChiSquaredNoncentral.R#22)  ──────
  ChiSquaredNoncentral$new(df = 2)$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 7. Failure: properties & traits (@test-DistErlang.R#24)  ────────────────────
  Erlang$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 8. Failure: properties & traits (@test-DistExponential.R#24)  ───────────────
  Exponential$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 9. Failure: properties & traits (@test-DistFDistribution.R#22)  ─────────────
  FDistribution$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 10. Failure: properties & traits (@test-DistFDistribution.R#24)  ────────────
  FDistribution$new(df1 = 5, df2 = 5)$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 11. Failure: properties & traits (@test-DistFDistributionNoncentral.R#24)  ──
  FDistributionNoncentral$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 12. Failure: properties & traits (@test-DistFDistributionNoncentral.R#26)  ──
  FDistributionNoncentral$new(df1 = 5, df2 = 5)$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 13. Failure: properties & traits (@test-DistFrechet.R#15)  ──────────────────
  Frechet$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 14. Failure: properties & traits (@test-DistGamma.R#31)  ────────────────────
  Gamma$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 15. Failure: properties & traits (@test-DistGeometric.R#22)  ────────────────
  Geometric$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 16. Failure: properties & traits (@test-DistGompertz.R#18)  ─────────────────
  Gompertz$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 17. Failure: properties & traits (@test-DistGumbel.R#20)  ───────────────────
  Gumbel$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 18. Failure: properties & traits (@test-DistGumbel.R#21)  ───────────────────
  Gumbel$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 19. Failure: properties & traits (@test-DistInverseGamma.R#18)  ─────────────
  InverseGamma$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 20. Failure: properties & traits (@test-DistLaplace.R#22)  ──────────────────
  Laplace$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 21. Failure: properties & traits (@test-DistLaplace.R#23)  ──────────────────
  Laplace$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 22. Failure: properties & traits (@test-DistLogLogistic.R#23)  ──────────────
  Loglogistic$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 23. Failure: properties & traits (@test-DistLogarithmic.R#11)  ──────────────
  Logarithmic$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 24. Failure: properties & traits (@test-DistLogistic.R#22)  ─────────────────
  l$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 25. Failure: properties & traits (@test-DistLogistic.R#23)  ─────────────────
  l$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 26. Failure: properties & traits (@test-DistLognormal.R#46)  ────────────────
  Lognormal$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 27. Failure: properties & traits (@test-DistNegativeBinomial.R#30)  ─────────
  NegativeBinomial$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 28. Failure: properties & traits (@test-DistNormal.R#38)  ───────────────────
  Normal$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 29. Failure: properties & traits (@test-DistNormal.R#39)  ───────────────────
  Normal$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 30. Failure: properties & traits (@test-DistPareto.R#14)  ───────────────────
  Pareto$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 31. Failure: properties & traits (@test-DistPoisson.R#11)  ──────────────────
  Poisson$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 32. Failure: properties & traits (@test-DistRayleigh.R#20)  ─────────────────
  x$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 33. Failure: properties & traits (@test-DistStudentT.R#19)  ─────────────────
  StudentT$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 34. Failure: properties & traits (@test-DistStudentT.R#20)  ─────────────────
  StudentT$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 35. Failure: properties & traits (@test-DistStudentTNoncentral.R#21)  ───────
  StudentTNoncentral$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 36. Failure: properties & traits (@test-DistStudentTNoncentral.R#22)  ───────
  StudentTNoncentral$new()$dmin not equal to -Inf.
  1/1 mismatches
  [1] -1.8e+308 - -Inf == Inf
  
  ── 37. Failure: properties & traits (@test-DistWald.R#21)  ─────────────────────
  Wald$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  ── 38. Failure: properties & traits (@test-DistWeibull.R#31)  ──────────────────
  Weibull$new()$dmax not equal to Inf.
  1/1 mismatches
  [1] 1.8e+308 - Inf == -Inf
  
  # distr6 1.3.6
  
  * Bugfix in `decorate` function that was overwriting the `decorators` private field instead of appending
  * Two bug fixes in `MultivariateNormal$rand()` . i) the distribution mean wasn't being added to the transformation correctly; ii) the Choleskey decomposition wasn't transposed causing incorrect simulations
  * Added `plot.VectorDistribution` for more efficient plotting of mutiple distributions at the same time
  
  # distr6 1.3.5
  
  * Added Erlang distribution
  * Fixed mistake in documentation for `Weibull`, thanks to Paul Northrop (@paulnorthrop) for pointing this out.
  * Fixed bug in `plot` preventing only `quantile` being plotted on its own
  * Converted descriptive public methods to active bindings. Unfortunately this will break reverse dependencies as there's no way to soft deprecate these. Affected methods are:  `decorators, traits, valueSupport, variateForm, type, properties, support, symmetry, sup, inf, dmax, dmin, kurtosisType, skewnessType`
  
  # distr6 1.3.4
  
  - Bug fix in `VectorDistribution` that was causing decorators not to be added properly
  - Bug fix in `VectorDistribution` that was causing an error when extracting decorated wrapped distributions
  - Moved package `pracma` to suggests. Removed `utils` dependency.
  - Added checks to assert all packages are installed when required by distributions
  - Deprecated `package` field in distributions, now called `packages`
  - `packages` lists all packages required to be installed for a distribution, if `NULL` only distr6 required
  - Abstracted SetInterval and related classes to the `set6` package
  - Deprecated `listSpecialSets`, use `set6::listSpecialSets` instead
  - Removed secondary checks on `update` of `ParameterSet` , any properly defined distributions will have this covered in primary parameter, thus increasing speed.
  
  # distr6 1.3.3
  
  - `as.data.table` has been moved from a `ParameterSet` method to an S3 dispatch. Fixes an important bug of overloading `as.data.table` but may affect backwards compatibility.
  - Added `distrSimulate` for convenient simulation from any distribution
  - Updated `plot` to be able to handle distributions without `quantile` or `rand`. Optimised runtime by preventing automatic computation of `pdf` and `cdf`.
  
  # distr6 1.3.2
  
  - Bug fix in `VectorDistribution` - missing `which` argument
  - Bug fix in `Bernoulli` - `rand` was incorrectly calling `dbinom` not `rbinom`
  - Bug fix in the `mode` of distributions
  - Added `mode` to documentation
  
  # distr6 1.3.1
  
  - Added wrapper for VectorDistribution for quick concatenation of constructed distributions, `c.Distribution`
  - `VectorDistribution` `print` method more in line with base R vectors
  
  # distr6 1.3.0
  
  ## Minor Updates
  
  ### Added Functions and Classes
  
  - `plot` function for plotting the `pdf, cdf, survival, quantile, hazard, cumhazard` or `distr6` objects
  - `lines` function for superimposing `distr6` plots
  - `qqplot` function for comparing `distr6` distributions to each other or to other theoretical distributions
  - Added `Extract.VectorDistribution` for extracted distributions from inside a `VectorDistribution`, see the big update below.
  
  ### Updated Functions
  
  - `decorate` now allows users to specify the Decorator as a character as well as supplying the object, this makes it simpler when using distr6 whilst unattached
  - **Big changes** (and hopefully final) to the `VectorDistribution`. Now the `VectorDistribution` only constructs the internal wrapped distributions when they are extracted or when a function, such as d/p/q/r, are called. This massively reduces a bottleneck in constructing the distribution. Additionally added functions for extracting distributions from inside the `VectorDistribution`. The only difference that should affect backwards compatibility is that the `distribution` argument must now be a character and not an object. Custom (i.e. non-`SDistribution`) distributions should be used in conjunction with the `distlist` initializer.
  - Changed the lower bound of positive Sets to .Machine$double.xmin as the previous value of 1.1e-15 was too restrictive
  - Added `skewness`, `kurtosis`, `entropy`, `mgf`, `cf`, and `pgf` to `WeightedDiscrete` and `Empirical`
  - Added support for custom distributions in `VectorDistribution` and for `CoreStatistics` functions as well as support for only one arguments passed to d/p/q/r for fast comparisons between wrapped distributions
  
  ## Patches
  
  - Bug fix in `WeightedDiscrete` distribution `variance` calculation
  - Fixed bug in `Empirical` that was stopping the cdf of the first point in the distribution being evaluated 
  - Fixed bug that allowed invalid parameter values to be set for non-reference parameters
  - Updated parameter error messages to be more informative
  - Improved speed and efficiency in `Distribution` constructor for wrappers
  
  # distr6 1.2.0
  
  ## Minor Updates
  
  ### Added Functions and Classes
  
  - Added non-central F, T, Chi-Squared, and Beta distributions
  - Added WeightedDiscrete distribution. This allows users to supply a data.frame of samples and pdf/cdfs for more efficient usage with empirical discrete estimators (e.g. Kaplan-Meier)
  
  ### Updated Functions
  
  - Added the common survival parameterisation of Weibull distribution
  - Updated the listX functions to make them quicker and functional when distr6 is not attached
  - Added `suppressMoments` argument to `Distribution` constructor to allow for faster construction
  
  ## Patches
  
  - Added `errormsg` argument to assertions so a custom error message can be provided
  - Fixed error in quantile function in `Empirical` that was causing results to be dropped
  - Fixed bug in `TruncatedDistribution` that prevented multivariate distributions being truncated
  - Fixed error in variance of `Empirical` that was calculating sample not population 
  - Moved rare imports to suggests
  
  # distr6 1.1.0
  
  ## Minor Updates
  
  ### Added Functions and Classes
  
  - `Empirical` distribution for distributions arising from observed samples (e.g. from MC sampling methods)
  - `simulateEmpiricalDistribution`: function for sampling *without* replacement from an `Empirical` distribution
  
  ### Deprecated Functions
  
  - `ArrayDistribution` - This wrapper is now merged with `ProductDistribution` by adding two new parameters to `ProductDistribution` that allow for construction either by a distribution list of by naming a distribution and providing a parameter list or data.table
  
  ### Updated Functions
  
  - Added quantile to Categorical distribution and updated its cdf efficiency
  - `cdf` of discrete distributions evaluated between integers are now evaluated after rounding down and do not return 0, e.g. `Binomial$new()$cdf(1.8) == Binomial$new()$cdf(1)`
  - Added two additional parameters to `ProductDistribution`: `params` and `distribution`, so that it can either function as before or as the `ArrayDistribution` wrapper which is now deprecated.
  - Added two additional parameters to `VectorDistribution`: `params` and `distribution`, so that it can either function as before or as a generalisation to the `ArrayDistribution` wrapper which is now deprecated.
  - Removed automated rounding of numerics when `ParameterSet` expected integer in `setParameterValue`
  - Added parameter `n` to `strprint` and `print` to clean the print method for distributions (especially wrappers) with multiple parameters
  - Added optional `vectordist` argument to `MixtureDistribution` for better compatibility with `VectorDistribution`
  - Changed `short_name` of  Uniform, Logistic, Normal, and Triangular kernels to remove `Kern`. The `ClassName`s (and thus constructors) remain the same
  - `listKernels` and `listSpecialSet` now return data.tables with `stringsAsFactors = FALSE`
  - `Degenerate` distribution re-classified as discrete
  
  ## Patches
  
  - Bug fix in quantile function of huberization wrapper
  - Fixed the `rand` return of a Vector Distribution (transposed data.table and added column names)
  - Fixed spelling mistakes in extension guidelines and removed calls to redundant parameters 
  - Removed redundant `crayon` dependency
  - Fixed bug in `MixtureDistribution` that was causing `rand` to erroneously return integers
  - Removed error in `Categorical` documentation
  - Fixed bug in multi-modal `Categorical` distribution
  - `summary` and `print` now return `self` invisibly for better piping
  
  # distr6 1.0.1
  
  - Updated vignettes to remove redundant distr6 installation via GitHub that was causing a warning on Debian
  - Redundant `stopwarn` argument removed from `parameters()` method in `Distribution` and `ParameterSet` classes
  - Updated Kernel$new() error message to point user to Distribution class
  - Fixed broken if/else statement in liesInSetInterval method of SetInterval class
  
  # distr6 1.0.0
  
  - v1 API is ready to be shipped to CRAN!
  - Again [see here](https://alan-turing-institute.github.io/distr6/articles/webs/api_lifecycle.html) for the updated API lifecycle
  - Tutorials, extension guidelines and other documentation (in appendices) are now on the [website](https://alan-turing-institute.github.io/distr6/index.html)
  - distr6 is a complete, unified, object-oriented interface to probability distributions in R. Complete with 36 probability distributions and another 11 kernels, distr6 also allows functionality for numerical imputation of methods and statistical functions.
  
  # distr6 0.1.0.9000
  
  - Now public!
  - distr6 API as whole is still very much experimental but analytic features are fairly stable, [see here](https://alan-turing-institute.github.io/distr6/articles/webs/api_lifecycle.html) for details on feature lifecycles
  - Development continues to be internal, through UCL and The Alan Turing Institute, but we welcome external users to test the API and report bugs, see our [contributing guidelines](https://github.com/alan-turing-institute/distr6/blob/master/CONTRIBUTING.md) for details including our [code of conduct](https://github.com/alan-turing-institute/distr6/blob/master/CODE_OF_CONDUCT.md)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2189 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 38 ]
  1. Failure: properties & traits (@test-DistCauchy.R#20) 
  2. Failure: properties & traits (@test-DistCauchy.R#21) 
  3. Failure: properties & traits (@test-DistChiSquared.R#18) 
  4. Failure: properties & traits (@test-DistChiSquared.R#20) 
  5. Failure: properties & traits (@test-DistChiSquaredNoncentral.R#20) 
  6. Failure: properties & traits (@test-DistChiSquaredNoncentral.R#22) 
  7. Failure: properties & traits (@test-DistErlang.R#24) 
  8. Failure: properties & traits (@test-DistExponential.R#24) 
  9. Failure: properties & traits (@test-DistFDistribution.R#22) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted