• using R Under development (unstable) (2012-02-06 r58287)
  • using platform: i686-pc-linux-gnu (32-bit)
  • using session charset: UTF-8
  • checking for file ‘sca/DESCRIPTION’ ... OK
  • this is package ‘sca’ version ‘0.8-7’
  • 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.
  • checking for executable files ... OK
  • checking whether package ‘sca’ 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 ... NOTE
    File ‘sca/R/aaa.R’:
    .First.lib calls:
    require(stats)

    Package startup functions should not change the search path.
    See section ‘Good practice’ in ?.onAttach.
  • 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 ... WARNING
    ‘library’ or ‘require’ call not declared from: ‘MASS’
  • checking contents of ‘data’ directory ... OK
  • checking data for non-ASCII characters ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking examples ... ERROR
    Running examples in ‘sca-Ex.R’ failed
    The error most likely occurred in:

    > ### Name: sca
    > ### Title: Simple Component Analysis - Interactively
    > ### Aliases: sca print.simpcomp
    > ### Keywords: multivariate
    >
    > ### ** Examples
    >
    > data(pitpropC)
    > sc.pitp <- sca(pitpropC, interactive=FALSE)
    > sc.pitp
    ------------------------------------------------------------
    Simple Component Analysis
    ------------------------------------------------------------
    Optimality criterion : corrected sum of variances
    Clustering procedure : median linkage
    Within-block differences : TRUE
    Possible invertion of signs : FALSE
    Number of block-components : 6
    Number of diff.-components : 0
    ------------------------------------------------------------
    Simple matrix:
    B1 B2 B3 B4 B5 B6
    topdiam 1 0 0 0 0 0
    length 1 0 0 0 0 0
    moist 0 1 0 0 0 0
    testsg 0 1 0 0 0 0
    ovensg 0 0 1 0 0 0
    ringtop 1 0 0 0 0 0
    ringbut 1 0 0 0 0 0
    bowmax 1 0 0 0 0 0
    bowdist 1 0 0 0 0 0
    whorls 1 0 0 0 0 0
    clear 0 0 0 1 0 0
    knots 0 0 0 0 1 0
    diaknot 0 0 0 0 0 1
    ------------------------------------------------------------
    Variance principal components:
    32.45 % 18.29 % 14.45 % 8.53 % 7.00 % 6.27 %
    Variance simple components :
    30.16 % 14.48 % 7.69 % 7.69 % 7.69 % 7.69 %
    ------------------------------------------------------------
    Extracted variability PCA: 87.00 %
    Extracted variability SCA: 72.82 %
    Optimality SCA : 83.70 %
    ------------------------------------------------------------
    Correlations simple components:
    B1 B2 B3 B4 B5 B6
    B1 1.00 0.20 0.08 -0.03 -0.21 -0.20
    B2 0.20 1.00 0.04 0.13 0.20 0.07
    B3 0.08 0.04 1.00 -0.09 -0.14 -0.21
    B4 -0.03 0.13 -0.09 1.00 0.03 0.01
    B5 -0.21 0.20 -0.14 0.03 1.00 0.18
    B6 -0.20 0.07 -0.21 0.01 0.18 1.00
    ------------------------------------------------------------
    Max (abs) correlation: 0.21 ( B1 - B5 )
    ------------------------------------------------------------
    > ## to see it's low-level components:
    > str(sc.pitp)
    List of 10
    $ simplemat : num [1:13, 1:6] 1 1 0 0 0 1 1 1 1 1 ...
    ..- attr(*, "dimnames")=List of 2
    .. ..$ : chr [1:13] "topdiam" "length" "moist" "testsg" ...
    .. ..$ : chr [1:6] "B1" "B2" "B3" "B4" ...
    $ loadings : num [1:13, 1:6] 0.378 0.378 0 0 0 ...
    ..- attr(*, "dimnames")=List of 2
    .. ..$ : chr [1:13] "topdiam" "length" "moist" "testsg" ...
    .. ..$ : chr [1:6] "B1" "B2" "B3" "B4" ...
    $ allcrit :List of 7
    ..$ varpc : num [1:6] 0.3245 0.1829 0.1445 0.0853 0.07 ...
    ..$ varsc : Named num [1:6] 0.3016 0.1448 0.0769 0.0769 0.0769 ...
    .. ..- attr(*, "names")= chr [1:6] "B1" "B2" "B3" "B4" ...
    ..$ cumpc : num 0.87
    ..$ cumsc : num 0.728
    ..$ opt : num 0.837
    ..$ corsc : num [1:6, 1:6] 1 0.1987 0.0792 -0.0309 -0.2128 ...
    .. ..- attr(*, "dimnames")=List of 2
    .. .. ..$ : chr [1:6] "B1" "B2" "B3" "B4" ...
    .. .. ..$ : chr [1:6] "B1" "B2" "B3" "B4" ...
    ..$ maxcor:List of 3
    .. ..$ row: chr "B1"
    .. ..$ col: chr "B5"
    .. ..$ val: num 0.213
    $ nblock : num 6
    $ ndiff : num 0
    $ criterion : chr "csv"
    $ cluster : chr "median"
    $ withinblock: logi TRUE
    $ invertsigns: logi FALSE
    $ vardata : num [1:13, 1:13] 1 0.954 0.364 0.342 -0.129 0.313 0.496 0.424 0.592 0.545 ...
    ..- attr(*, "dimnames")=List of 2
    .. ..$ : chr [1:13] "topdiam" "length" "moist" "testsg" ...
    .. ..$ : chr [1:13] "topdiam" "length" "moist" "testsg" ...
    - attr(*, "class")= chr "simpcomp"
    >
    > ## Let `X' be a matrix containing some data set whose rows correspond to
    > ## subjects and whose columns correspond to variables. For example:
    >
    > library(MASS)
    Error in library(MASS) : there is no package called ‘MASS’
    Execution halted