- using R version 2.11.0 Under development (unstable) (2010-01-14 r50981)
- using session charset: UTF-8
- checking for file 'mixAK/DESCRIPTION' ... OK
- this is package 'mixAK' version '0.6'
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking for executable files ... OK
- checking whether package 'mixAK' can be installed ... 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 data for non-ASCII characters ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for portable compilation flags in Makevars ... OK
- checking for portable use of $BLAS_LIBS ... OK
- checking examples ... ERROR
Running examples in 'mixAK-Ex.R' failed.
The error most likely occurred in:
> ### * MatSqrt
>
> flush(stderr()); flush(stdout())
>
> ### Name: MatSqrt
> ### Title: Square root of a matrix
> ### Aliases: MatSqrt
> ### Keywords: array algebra
>
> ### ** Examples
>
> MatSqrt(0:4)
[1] 0.000000 1.000000 1.414214 1.732051 2.000000
> MatSqrt((-4):0)
[1] 0+2.000000i 0+1.732051i 0+1.414214i 0+1.000000i 0+0.000000i
> MatSqrt(c(-1, 1, -2, 2))
[1] 0.000000+1.000000i 1.000000+0.000000i 0.000000+1.414214i 1.414214+0.000000i
>
> A <- (1:4) %*% t(1:4)
> sqrtA <- MatSqrt(A)
> sqrtA
[,1] [,2] [,3] [,4]
[1,] 0.1825742 0.3651484 0.5477226 0.7302967
[2,] 0.3651484 0.7302968 1.0954451 1.4605935
[3,] 0.5477226 1.0954451 1.6431677 2.1908902
[4,] 0.7302967 1.4605935 2.1908902 2.9211870
> round(sqrtA %*% sqrtA - A, 13)
[,1] [,2] [,3] [,4]
[1,] 0 0 0 0
[2,] 0 0 0 0
[3,] 0 0 0 0
[4,] 0 0 0 0
>
> B <- -A
> sqrtB <- MatSqrt(B)
Warning in MatSqrt(B) : AK_LAPACK::iinvComplexGE: LAPACK zgesv failed.
Warning in MatSqrt(B) :
AK_LAPACK::spevGE2GE: invComplexGE subroutine failed.
Warning in MatSqrt(B) : AK_LAPACK::sqrtGE: spevGE2GE subroutine failed.
Error in MatSqrt(B) : Matrix square root not computed.
Execution halted