* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/SCOR.Rcheck’ * using R Under development (unstable) (2023-03-24 r84037) * using platform: x86_64-pc-linux-gnu (64-bit) * R was compiled by gcc (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) GNU Fortran (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2) * running under: Fedora 34 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘SCOR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SCOR’ version ‘1.1.1’ * package encoding: UTF-8 * 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 whether package ‘SCOR’ can be installed ... 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 line widths ... 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘SCOR-Ex.R’ failed The error most likely occurred in: > ### Name: SCOptim > ### Title: Spherically Constrained Optimization > ### Aliases: SCOptim > > ### ** Examples > > f <- function(x) + return(x[2]^2 + x[3]^3 +x[4]^4) > > SCOptim(rep(1,10), f) [1] 0 0 -1 0 0 0 0 0 0 0 > > SCOptim(c(2,4,6,2,1), f, minimize = FALSE, print = TRUE) Run Iteration Objective Function 1 1 0.8733537 1 2 0.9462787 1 3 0.9576958 1 4 0.9641454 1 5 0.9641454 1 6 0.9641454 1 7 0.9641454 1 8 0.9760909 1 9 0.9804185 1 10 0.9824701 1 11 0.9824701 1 12 0.9860973 1 13 0.9979208 1 14 0.9998032 1 15 0.9998032 1 16 0.9998032 1 17 0.9998931 1 18 0.9998931 1 19 0.9999687 1 20 0.9999687 1 21 0.9999687 1 22 0.999979 1 23 0.9999894 1 24 0.9999932 1 25 0.9999932 1 26 0.9999956 1 27 0.9999966 2 1 0.9999966 2 2 0.9999966 2 3 0.9999966 2 4 0.9999966 2 5 0.9999966 2 6 0.9999966 2 7 0.9999966 2 8 0.9999966 2 9 0.9999966 2 10 0.9999966 2 11 0.9999983 2 12 0.9999995 2 13 1 3 1 1 3 2 1 3 3 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 [1] 0 0 1 0 0 > #Will Print the List and Find the Maximum > > SCOptim(c(1,2,3,4), f, time = 10, lambda = 1e-2) [1] 0 0 -1 0 > #Will perform no iterations after 10 secs, Sparsity Threshold is 0.01 > > ## No test: > SCOptim(c(2,6,2,7,8), f, parallel = TRUE) Error in .check_ncores(length(names)) : 31 simultaneous processes spawned Calls: SCOptim -> makeCluster -> makePSOCKcluster -> .check_ncores 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 * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/SCOR.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:21.67, 16.74 + 4.65