- using R version 2.15.0 (2012-03-30)
- using platform: i686-pc-linux-gnu (32-bit)
- using session charset: UTF-8
- checking for file ‘tolerance/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘tolerance’ version ‘0.4.0’
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... NOTE
As from R 2.14.0 all packages need a namespace.
One will be generated on installation, but it is better to handcraft a
NAMESPACE file: R CMD build will produce a suitable starting point.
CRAN requires a NAMESPACE file for all submissions.
- checking for executable files ... OK
- checking whether package ‘tolerance’ can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... 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 package can be unloaded cleanly ... 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 metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... ERROR
Running examples in ‘tolerance-Ex.R’ failed
The error most likely occurred in:
> ### Name: mvtol.region
> ### Title: Multivariate Normal Tolerance Regions
> ### Aliases: mvtol.region
> ### Keywords: file
>
> ### ** Examples
>
> ## 90%/90% bivariate normal tolerance region.
>
> set.seed(100)
> x1 <- rnorm(100, 0, 0.2)
> x2 <- rnorm(100, 0, 0.5)
> x <- cbind(x1, x2)
>
> out1 <- mvtol.region(x = x, alpha = 0.10, P = 0.90, B = 1000)
> out1
0.1
0.9 5.506321
> plottol(out1, x)
>
> ## 90%/90% trivariate normal tolerance region.
>
> set.seed(100)
> x1 <- rnorm(100, 0, 0.2)
> x2 <- rnorm(100, 0, 0.5)
> x3 <- rnorm(100, 5, 1)
> x <- cbind(x1, x2, x3)
> mvtol.region(x = x, alpha = c(0.10, 0.05, 0.01),
+ P = c(0.90, 0.95, 0.99), B = 1000)
0.1 0.05 0.01
0.9 7.405843 7.595072 8.108129
0.95 9.302529 9.576672 10.207717
0.99 13.658717 14.099432 15.095717
>
> out2 <- mvtol.region(x = x, alpha = 0.10, P = 0.90, B = 1000)
> out2
0.1
0.9 7.389876
> plottol(out2, x)
Error in rgl.open() : rgl.open failed
Calls: plottol -> open3d -> rgl.open
Execution halted