- using R Under development (unstable) (2012-05-19 r59366)
- using platform: x86_64-unknown-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘heplots/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘heplots’ version ‘0.9-12’
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking whether package ‘heplots’ 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 whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking examples ... ERROR
Running examples in ‘heplots-Ex.R’ failed
The error most likely occurred in:
> ### Name: Adopted
> ### Title: Adopted Children
> ### Aliases: Adopted
> ### Keywords: datasets
>
> ### ** Examples
>
> ## Don't show:
> # allow to work with car 1
> if (packageDescription("car")[["Version"]] < 2) {
+ dataEllipse <- data.ellipse
+ linearHypothesis <- linear.hypothesis
+ }
> ## End Don't show
> # Treat as multivariate regression problem
> Adopted.mod <- lm(cbind(Age2IQ, Age4IQ, Age8IQ, Age13IQ) ~ AMED + BMIQ, data=Adopted)
> Adopted.mod
Call:
lm(formula = cbind(Age2IQ, Age4IQ, Age8IQ, Age13IQ) ~ AMED +
BMIQ, data = Adopted)
Coefficients:
Age2IQ Age4IQ Age8IQ Age13IQ
(Intercept) 117.63046 93.33771 88.03739 76.84827
AMED -0.44136 -0.02073 -0.01216 -0.16063
BMIQ 0.04001 0.22172 0.30961 0.36747
>
> # test overall multivariate regression
> linearHypothesis(Adopted.mod, c("AMED","BMIQ"))
Sum of squares and products for the hypothesis:
Age2IQ Age4IQ Age8IQ Age13IQ
Age2IQ 118.3111 123.1252 168.2407 231.7826
Age4IQ 123.1252 763.3184 1066.4332 1260.8390
Age8IQ 168.2407 1066.4332 1490.0603 1760.4299
Age13IQ 231.7826 1260.8390 1760.4299 2090.8328
Sum of squares and products for error:
Age2IQ Age4IQ Age8IQ Age13IQ
Age2IQ 10242.157 5137.843 5000.888 3430.234
Age4IQ 5137.843 9561.649 5929.696 5316.677
Age8IQ 5000.888 5929.696 9875.424 8141.506
Age13IQ 3430.234 5316.677 8141.506 12312.409
Multivariate Tests:
Df test stat approx F num Df den Df Pr(>F)
Pillai 2 0.1964576 1.552235 8 114 0.147134
Wilks 2 0.8065020 1.589253 8 112 0.135846
Hotelling-Lawley 2 0.2362528 1.624238 8 110 0.125939
Roy 2 0.2195371 3.128404 4 57 0.021426 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
>
> # show separate linear regressions
> op <- par(mfcol=c(2,4), mar=c(4,4,2,2)+.1)
> for (i in 3:6) {
+ dataEllipse(as.matrix(Adopted[,c(1,i)]),col="black", levels=0.68, ylim=c(70,140))
+ abline(lm(Adopted[,i] ~ Adopted[,1]), col="red", lwd=2)
+ dataEllipse(as.matrix(Adopted[,c(2,i)]),col="black", levels=0.68, ylim=c(70,140))
+ abline(lm(Adopted[,i] ~ Adopted[,2]), col="red", lwd=2)
+ abline(a=0,b=1, lty=1, col="blue")
+ }
> par(op)
>
> # between-S (MMReg) plots
> heplot(Adopted.mod, hypotheses=list("Reg"=c("AMED", "BMIQ")),
+ main="IQ scores of adopted children: MMReg")
> pairs(Adopted.mod, hypotheses=list("Reg"=c("AMED", "BMIQ")))
>
> heplot3d(Adopted.mod, hypotheses=list("Reg"=c("AMED", "BMIQ")),
+ col = c("pink", "blue", "black", "gray"))
Loading required package: rgl
Warning in rgl.init(initValue) : RGL: GLX extension missing on server
Warning in fun(libname, pkgname) : error in rgl_init
*** caught segfault ***
address 0x20, cause 'memory not mapped'
Traceback:
1: .External(rgl_par3d, args)
2: par3d("scale")
3: rgl.viewpoint(fov = fov)
4: heplot3d.mlm(Adopted.mod, hypotheses = list(Reg = c("AMED", "BMIQ")), col = c("pink", "blue", "black", "gray"))
5: heplot3d(Adopted.mod, hypotheses = list(Reg = c("AMED", "BMIQ")), col = c("pink", "blue", "black", "gray"))
aborting ...