• using R version 2.15.0 (2012-03-30)
  • using platform: x86_64-pc-mingw32 (64-bit)
  • using session charset: ISO8859-1
  • checking for file 'crossmatch/DESCRIPTION' ... OK
  • checking extension type ... Package
  • this is package 'crossmatch' version '1.1'
  • 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 whether package 'crossmatch' can be installed ... OK
  • checking installed package size ... 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
  • loading checks for arch 'i386'
    ** 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
  • loading checks for arch 'x64'
    ** 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 ... WARNING
    'library' or 'require' call not declared from: 'MASS'
  • checking examples ...
    ** running examples for arch 'i386' ... ERROR
    Running examples in 'crossmatch-Ex.R' failed
    The error most likely occurred in:

    > ### Name: crossmatch-package
    > ### Title: The cross-match test for comparing two multivariate
    > ### distributions.
    > ### Aliases: crossmatch-package crossmatch
    > ### Keywords: nonparametric multivariate
    >
    > ### ** Examples
    >
    > #The example in Section 2 of Rosenbaum P. (2005), An exact distribution-free test comparing two multivariate distributions based on adjacency, JRSS B, 67, pp 515-530.
    >
    > #The data consists of 2 outcomes measured on 9 treated cases and 9 controls.
    > dat = rbind(c(0.47,0.39,0.47,0.78,1,1,0.54,1,0.38,1,0.27,0.63,0.22,0,-1,-0.42,-1,-1),
    + c(0.03,0.11,0.16,-0.1,-0.05,0.16,0.12,0.4,0.04,0.71,0.01,0.21,-0.18,-0.08,-0.35,0.26,-0.6,-1.0))
    > z = c(rep(0,9),rep(1,9))
    > X=t(dat)
    >
    > # rank based Mahalanobis distance between each pair
    > X<-as.matrix(X)
    > n<-dim(X)[1]
    > k<-dim(X)[2]
    > for (j in 1:k) X[,j]<-rank(X[,j])
    > cv<-cov(X)
    > vuntied<-var(1:n)
    > rat<-sqrt(vuntied/diag(cv))
    > cv<-diag(rat)%*%cv%*%diag(rat)
    > out<-matrix(NA,n,n)
    > library(MASS)
    Error in library(MASS) : there is no package called 'MASS'
    Execution halted
    ** running examples for arch 'x64' ... ERROR
    Running examples in 'crossmatch-Ex.R' failed
    The error most likely occurred in:

    > ### Name: crossmatch-package
    > ### Title: The cross-match test for comparing two multivariate
    > ### distributions.
    > ### Aliases: crossmatch-package crossmatch
    > ### Keywords: nonparametric multivariate
    >
    > ### ** Examples
    >
    > #The example in Section 2 of Rosenbaum P. (2005), An exact distribution-free test comparing two multivariate distributions based on adjacency, JRSS B, 67, pp 515-530.
    >
    > #The data consists of 2 outcomes measured on 9 treated cases and 9 controls.
    > dat = rbind(c(0.47,0.39,0.47,0.78,1,1,0.54,1,0.38,1,0.27,0.63,0.22,0,-1,-0.42,-1,-1),
    + c(0.03,0.11,0.16,-0.1,-0.05,0.16,0.12,0.4,0.04,0.71,0.01,0.21,-0.18,-0.08,-0.35,0.26,-0.6,-1.0))
    > z = c(rep(0,9),rep(1,9))
    > X=t(dat)
    >
    > # rank based Mahalanobis distance between each pair
    > X<-as.matrix(X)
    > n<-dim(X)[1]
    > k<-dim(X)[2]
    > for (j in 1:k) X[,j]<-rank(X[,j])
    > cv<-cov(X)
    > vuntied<-var(1:n)
    > rat<-sqrt(vuntied/diag(cv))
    > cv<-diag(rat)%*%cv%*%diag(rat)
    > out<-matrix(NA,n,n)
    > library(MASS)
    Error in library(MASS) : there is no package called 'MASS'
    Execution halted