Running examples in ‘distrEx-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: E
> ### Title: Generic Function for the Computation of (Conditional)
> ###   Expectations
> ### Aliases: E E-methods E,UnivariateDistribution,missing,missing-method
> ###   E,AbscontDistribution,missing,missing-method
> ###   E,DiscreteDistribution,missing,missing-method
> ###   E,LatticeDistribution,missing,missing-method
> ###   E,AffLinDistribution,missing,missing-method
> ###   E,AffLinAbscontDistribution,missing,missing-method
> ###   E,AffLinDiscreteDistribution,missing,missing-method
> ###   E,AffLinLatticeDistribution,missing,missing-method
> ###   E,MultivariateDistribution,missing,missing-method
> ###   E,DiscreteMVDistribution,missing,missing-method
> ###   E,UnivarLebDecDistribution,missing,missing-method
> ###   E,AffLinUnivarLebDecDistribution,missing,missing-method
> ###   E,UnivarMixingDistribution,missing,missing-method
> ###   E,UnivariateDistribution,function,missing-method
> ###   E,AbscontDistribution,function,missing-method
> ###   E,DiscreteDistribution,function,missing-method
> ###   E,LatticeDistribution,function,missing-method
> ###   E,MultivariateDistribution,function,missing-method
> ###   E,DiscreteMVDistribution,function,missing-method
> ###   E,UnivarLebDecDistribution,function,missing-method
> ###   E,UnivarMixingDistribution,function,missing-method
> ###   E,AcDcLcDistribution,ANY,ANY-method
> ###   E,CompoundDistribution,missing,missing-method
> ###   E,UnivariateCondDistribution,missing,numeric-method
> ###   E,AbscontCondDistribution,missing,numeric-method
> ###   E,DiscreteCondDistribution,missing,numeric-method
> ###   E,UnivarLebDecDistribution,missing,ANY-method
> ###   E,UnivarMixingDistribution,missing,ANY-method
> ###   E,UnivarLebDecDistribution,function,ANY-method
> ###   E,UnivariateCondDistribution,function,numeric-method
> ###   E,UnivarMixingDistribution,function,ANY-method
> ###   E,AbscontCondDistribution,function,numeric-method
> ###   E,DiscreteCondDistribution,function,numeric-method
> ###   E,Arcsine,missing,missing-method E,Beta,missing,missing-method
> ###   E,Binom,missing,missing-method E,Cauchy,missing,missing-method
> ###   E,Chisq,missing,missing-method E,Dirac,missing,missing-method
> ###   E,DExp,missing,missing-method E,Exp,missing,missing-method
> ###   E,Fd,missing,missing-method E,Gammad,missing,missing-method
> ###   E,Geom,missing,missing-method E,Hyper,missing,missing-method
> ###   E,Logis,missing,missing-method E,Lnorm,missing,missing-method
> ###   E,Nbinom,missing,missing-method E,Norm,missing,missing-method
> ###   E,Pois,missing,missing-method E,Td,missing,missing-method
> ###   E,Unif,missing,missing-method E,Weibull,missing,missing-method
> ###   E,Gammad,function,missing-method E,Weibull,function,missing-method
> ###   E,Cauchy,function,missing-method .qtlIntegrate
> ### Keywords: methods distribution
> 
> ### ** Examples
> 
> # mean of Exp(1) distribution
> E <- Exp() 
> 
> E(E) ## uses explicit terms
[1] 1
> E(as(E,"AbscontDistribution")) ## uses numerical integration
[1] 0.9999983
> E(as(E,"UnivariateDistribution")) ## uses simulations
[1] 1.002698
> E(E, fun = function(x){2*x^2}) ## uses simulations
[1] 3.999918
> 
> # the same operator for discrete distributions:
> P <- Pois(lambda=2)
> 
> E(P) ## uses explicit terms
[1] 2
> E(as(P,"DiscreteDistribution")) ## uses sums
Warning in .local(.Object, ...) : you have to specify slot r at least
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'object' in selecting a method for function 'E': unable to find an inherited method for function ‘r’ for signature ‘object = "numeric"’
Calls: E ... initialize -> initialize -> .local -> table -> r -> <Anonymous>
Execution halted