* using log directory ‘/data/gannet/ripley/R/packages/tests-ATLAS/RandomFieldsUtils.Rcheck’ * using R Under development (unstable) (2022-12-05 r83403) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘RandomFieldsUtils/DESCRIPTION’ ... OK * this is package ‘RandomFieldsUtils’ version ‘1.2.5’ * checking package namespace information ... OK * checking package dependencies ... NOTE Package suggested but not available for checking: ‘RandomFields’ * 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 ‘RandomFieldsUtils’ can be installed ... [49s/62s] WARNING Found the following significant warnings: win_linux_aux.h:40:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:46:2: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:47:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:64:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:66:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:67:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:68:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] RandomFieldsUtils.h:72:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] Utils.h:29:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] options.h:152:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] options.h:155:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] zzz_RandomFieldsUtils.h:96:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] zzz_RandomFieldsUtils.h:97:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] zzz_RandomFieldsUtils.h:132:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes] See ‘/data/gannet/ripley/R/packages/tests-ATLAS/RandomFieldsUtils.Rcheck/00install.out’ for details. * 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 use of S3 registration ... 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 ... [8s/13s] 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 line endings in shell scripts ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... WARNING File ‘RandomFieldsUtils/libs/RandomFieldsUtils.so’: Found ‘__sprintf_chk’, possibly from ‘sprintf’ (C) Objects: ‘kleinkram.o’, ‘options.o’, ‘RFoptions.o’, ‘solve.o’, ‘sort.o’, ‘sortLong.o’, ‘utils.o’, ‘xport_import.o’, ‘obsolete.o’ Compiled code should not call entry points which might terminate R nor write to stdout/stderr instead of to the console, nor use Fortran I/O nor system RNGs nor [v]sprintf. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual. * checking examples ... ERROR Running examples in ‘RandomFieldsUtils-Ex.R’ failed The error most likely occurred in: > ### Name: solve > ### Title: Solve a System of Equations for Positive Definite Matrices > ### Aliases: solvePosDef solvex solve > ### Keywords: math > > ### ** Examples > > > RFoptions(solve_method = "cholesky", printlevel=1) > set.seed(1) > n <- 1000 > x <- 1:n > y <- runif(n) > > > ## FIRST EXAMPLE: full rank matrix > M <- exp(-as.matrix(dist(x) / n)) > b0 <- matrix(nr=n, runif(n * 5)) > b <- M %*% b0 + runif(n) > > ## standard with 'solve' > print(system.time(z <- zR <- solve(M, b))) user system elapsed 0.183 0.000 0.382 > print(range(b - M %*% z)) [1] -1.074341e-11 1.210765e-11 > stopifnot(all(abs((b - M %*% z)) < 2e-11)) > > ## using exactly the algorithm used in R > RFoptions(pivot=PIVOT_NONE, la_mode=LA_R) ## (default) > print(system.time(z <- solvex(M, b))) user system elapsed 0.158 0.008 0.258 > print(range(b - M %*% z)) [1] -9.436008e-12 1.347189e-11 > stopifnot(all(z == zR)) Error: all(z == zR) is not TRUE Execution halted * checking PDF version of manual ... [8s/13s] OK * checking HTML 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, 1 NOTE See ‘/data/gannet/ripley/R/packages/tests-ATLAS/RandomFieldsUtils.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:32.53, 94.89 + 12.46