* using log directory 'd:/Rcompile/CRANpkg/local/2.7/aylmer.Rcheck' * using R version 2.7.2 (2008-08-25) * using session charset: ISO8859-1 * checking for file 'aylmer/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'aylmer' version '1.0-2' * checking package name space information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'aylmer' can be installed ... 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 * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the name space can be loaded with stated dependencies ... 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 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 use of $BLAS_LIBS ... OK * creating aylmer-Ex.R ... OK * checking examples ... ERROR Running examples in 'aylmer-Ex.R' failed. The error most likely occurred in: > ### * best > > flush(stderr()); flush(stdout()) > > ### Name: best > ### Title: Optimize a board using simulated annealing > ### Aliases: best > > > ### ** Examples > > a <- matrix(0,5,5) > diag(a) <- NA > a[cbind(1:5 , c(2:5,1))] <- 4 > best(a,control=list(maxit=10)) ## Answer should be all ones except the diagonal $par [,1] [,2] [,3] [,4] [,5] [1,] NA 3 0 1 0 [2,] 1 NA 3 0 0 [3,] 1 1 NA 1 1 [4,] 0 0 1 NA 3 [5,] 2 0 0 2 NA $value [1] 6.761573 $counts function gradient 10 NA $convergence [1] 0 $message NULL > > # Now a non-default function; SANN should be able to get func(x) down to > # zero pretty quickly: > > best(a,func=function(x){x[1,2]},control=list(maxit=100)) [,1] [,2] [,3] [,4] [,5] [1,] 0 4 0 0 0 [2,] 0 0 4 0 0 [3,] 0 0 0 4 0 [4,] 0 0 0 0 4 [5,] 4 0 0 0 0 Error in candidate(tomat(x), n = n) : no acceptable candidates found. Consider increasing n Calls: best -> optim -> -> gr -> tovec -> candidate Execution halted