- using R version 2.10.0 Under development (unstable) (2009-07-02 r48889)
- using session charset: ISO8859-1
- checking for file 'distr/DESCRIPTION' ... OK
- this is package 'distr' version '2.1.3'
- checking package name space information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking whether package 'distr' can be installed ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the name space can be loaded with stated dependencies ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd files against version 2 parser ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking examples ... ERROR
Running examples in 'distr-Ex.R' failed.
The error most likely occurred in:
> ### * flat.mix
>
> flush(stderr()); flush(stdout())
>
> ### Name: flat.mix
> ### Title: Default procedure to fill slots d,p,q given r for Lebesgue
> ### decomposed distributions
> ### Aliases: flat.mix
> ### Keywords: distribution arith
>
> ### ** Examples
>
> D1 <- Norm()
> D2 <- Pois(1)
> D3 <- Binom(1,.4)
> D4 <- UnivarMixingDistribution(D1,D2,D3, mixCoeff = c(0.4,0.5,0.1),
+ withSimplify = FALSE)
> D <- UnivarMixingDistribution(D1,D4,D1,D2, mixCoeff = c(0.4,0.3,0.1,0.2),
+ withSimplify = FALSE)
> D
An object of class "UnivarMixingDistribution"
---------------------------------------------
It consists of 4 components
Components:
[[1]]Distribution Object of Class: Norm
:mean: 0
:sd: 1
[[2]]An object of class "UnivarMixingDistribution"
:---------------------------------------------
:It consists of 3 components
:Components:
:[[1]]Distribution Object of Class: Norm
: :mean: 0
: :sd: 1
:[[2]]Distribution Object of Class: Pois
: :lambda: 1
:[[3]]Distribution Object of Class: Binom
: :size: 1
: :prob: 0.4
:---------------------------------------------
:Weights:
:0.400000 :0.500000 :0.100000 :
---------------------------------------------
[[3]]Distribution Object of Class: Norm
:mean: 0
:sd: 1
[[4]]Distribution Object of Class: Pois
:lambda: 1
---------------------------------------------
Weights:
0.400000 0.300000 0.100000 0.200000
---------------------------------------------
> D0<-flat.mix(D)
> D0
An object of class "UnivarLebDecDistribution"
--- a Lebesgue decomposed distribution:
Its discrete part (with weight 0.380000) is a
Distribution Object of Class: DiscreteDistribution
This part is accessible with 'discretePart()'.
Its absolutely continuous part (with weight 0.620000) is a
Distribution Object of Class: AbscontDistribution
This part is accessible with 'acPart()'.
Warning in function (object) :
arithmetics on distributions are understood as operations on r.v.'s
see 'distrARITH()'; for switching off this warning see '?distroptions'
> plot(D0)
Error in f1(x) : approx(): attempted to interpolate NA values
Calls: plot -> plot -> .local -> <Anonymous> -> q.l -> f1 -> .C
Execution halted