* using log directory 'd:/Rcompile/CRANpkg/local/3.0/NbClust.Rcheck' * using R version 3.0.3 (2014-03-06) * using platform: i386-w64-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'NbClust/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'NbClust' version '2.0.1' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'NbClust' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over 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 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 'NbClust-Ex.R' failed The error most likely occurred in: > ### Name: NbClust > ### Title: NbClust Package for determining the best number of clusters > ### Aliases: NbClust > ### Keywords: Validity Indices Number of clusters clustering validation > ### clustering algorithms cluster validity > > ### ** Examples > > ## A 2-dimensional example > x<-rbind(matrix(rnorm(100,sd=0.1),ncol=2), + matrix(rnorm(100,mean=1,sd=0.2),ncol=2), + matrix(rnorm(100,mean=5,sd=0.1),ncol=2), + matrix(rnorm(100,mean=7,sd=0.2),ncol=2)) > > NbClust(x, distance = "euclidean", min.nc=2, max.nc=8, + method = "complete", index = "ch") All 200 observations were used. $All.index 2 3 4 5 6 7 8 2316.746 5535.379 23004.815 20119.928 19016.087 17702.132 16867.529 $Best.nc Number_clusters Value_Index 4.00 23004.82 $Best.partition [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 [75] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 [112] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 [149] 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 [186] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 > > ## A 3-dimensional example > x<-rbind(matrix(rnorm(150,sd=0.3),ncol=3), + matrix(rnorm(150,mean=3,sd=0.2),ncol=3), + matrix(rnorm(150,mean=5,sd=0.3),ncol=3)) > NbClust(x, distance = "euclidean", min.nc=2, max.nc=10, + method = "ward.D2", index = "dindex") Error in hclust(md, method = "ward.D2") : invalid clustering method Calls: NbClust -> hclust Execution halted