ConsPlan
About ConsPlan
|
Version: 0.1
Result: ERROR Check time: 2021-09-08 04:23 * using log directory '' * using R Under development (unstable) (2021-09-06 r80865) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: ASCII * using option '--as-cran' * checking for file 'ConsPlan/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ConsPlan' version '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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package 'ConsPlan' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking DESCRIPTION meta-information ... NOTE Non-standard license specification: GPL version 2 or newer Standardizable: TRUE Standardized license specification: GPL (>= 2) * 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 line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... WARNING Undocumented code objects: 'sann' All user-level objects in a package should have documentation entries. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual. * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... WARNING Objects in \usage without \alias in documentation object 'sann': 'sann' Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... NOTE File 'ConsPlan/libs/ConsPlan.so': Found no calls to: 'R_registerRoutines', 'R_useDynamicSymbols' It is good practice to register native routines and to disable symbol search. See 'Writing portable packages' in the 'Writing R Extensions' manual. * checking examples ... ERROR Running examples in 'ConsPlan-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: sann > ### Title: Simulated Anneal Optimization > ### Aliases: lcmw > > ### ** Examples > > > ## Traveling salesman problem (modified from \code{optim}) > library(stats) # normally loaded > > eurodistmat <- as.matrix(eurodist) > > distance <- function(sq) { # Target function + sq2 <- embed(sq, 2) + return(as.numeric(sum(eurodistmat[cbind(sq2[,2],sq2[,1])]))) + } > > genseq <- function(sq) { # Generate new candidate sequence + idx <- seq(2, NROW(eurodistmat)-1, by=1) + changepoints <- sample(idx, size=2, replace=FALSE) + tmp <- sq[changepoints[1]] + sq[changepoints[1]] <- sq[changepoints[2]] + sq[changepoints[2]] <- tmp + return(as.numeric(sq)) + } > > sq <- c(1,2:NROW(eurodistmat),1) # Initial sequence > distance(sq) [1] 29625 > > set.seed(123) # chosen to get a good soln relatively quickly > res <- sann(sq, distance, genseq, maxit=30000, REPORT=500, temp=2000) initial value 29625.000000 iter 5000 value 13786.000000 iter 10000 value 13647.000000 iter 15000 value 13433.000000 iter 20000 value 13433.000000 Error in sann(sq, distance, genseq, maxit = 30000, REPORT = 500, temp = 2000) : REAL() can only be applied to a 'numeric', not a 'NULL' Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 WARNINGs, 2 NOTEs See '/00check.log' for details. Installation log: 00install.out
|