* using log directory 'd:/Rcompile/CRANpkg/local/3.6/ARCokrig.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'ARCokrig/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ARCokrig' version '0.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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'ARCokrig' 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 * loading checks for arch 'i386' ** 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 * loading checks for arch 'x64' ** 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 ... [19s] 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 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 pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... ** running examples for arch 'i386' ... ERROR Running examples in 'ARCokrig-Ex.R' failed The error most likely occurred in: > ### Name: ARCokrig > ### Title: Fit the AR-Cokriging model and make predictions > ### Aliases: ARCokrig > > ### ** Examples > > > ############################################################## > ############################################################## > ############ Example > Funcc = function(x){ + return(0.5*(6*x-2)^2*sin(12*x-4)+10*(x-0.5)-5) + } > > Funcf = function(x){ + z1 = Funcc(x) + z2 = 2*z1-20*x+20 + sin(10*cos(5*x)) + return(z2) + } > > ##################################################################### > ###### Nested design > ##################################################################### > Dc <- seq(-1,1,0.1) > indDf <- c(1, 3, 6, 8, 10, 13, 17, 21) > zc <- Funcc(Dc) > Df <- Dc[indDf] > zf <- Funcf(Df) > > input.new = as.matrix(seq(-1,1,length.out=200)) > > > ## fit and predict with the AR-Cokriging model > > out = ARCokrig(formula=list(~1,~1+x1), output=list(c(zc), c(zf)), + input=list(as.matrix(Dc), as.matrix(Df)), + cov.model="matern_5_2", + input.new=input.new) [1] "optimization error, skip t=1" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") [1] "optimization error, skip t=2" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") Error in chol.default(R) : the leading minor of order 2 is not positive definite Calls: ARCokrig -> cokm.predict -> chol -> chol.default Execution halted ** running examples for arch 'x64' ... ERROR Running examples in 'ARCokrig-Ex.R' failed The error most likely occurred in: > ### Name: ARCokrig > ### Title: Fit the AR-Cokriging model and make predictions > ### Aliases: ARCokrig > > ### ** Examples > > > ############################################################## > ############################################################## > ############ Example > Funcc = function(x){ + return(0.5*(6*x-2)^2*sin(12*x-4)+10*(x-0.5)-5) + } > > Funcf = function(x){ + z1 = Funcc(x) + z2 = 2*z1-20*x+20 + sin(10*cos(5*x)) + return(z2) + } > > ##################################################################### > ###### Nested design > ##################################################################### > Dc <- seq(-1,1,0.1) > indDf <- c(1, 3, 6, 8, 10, 13, 17, 21) > zc <- Funcc(Dc) > Df <- Dc[indDf] > zf <- Funcf(Df) > > input.new = as.matrix(seq(-1,1,length.out=200)) > > > ## fit and predict with the AR-Cokriging model > > out = ARCokrig(formula=list(~1,~1+x1), output=list(c(zc), c(zf)), + input=list(as.matrix(Dc), as.matrix(Df)), + cov.model="matern_5_2", + input.new=input.new) [1] "optimization error, skip t=1" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") [1] "optimization error, skip t=2" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") Error in chol.default(R) : the leading minor of order 2 is not positive definite Calls: ARCokrig -> cokm.predict -> chol -> chol.default Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ** running tests for arch 'i386' ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ARCokrig) > > test_check("ARCokrig") [1] "optimization error, skip t=1" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") [1] "optimization error, skip t=2" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") == Failed tests ================================================================ -- Error (test_ARCokrig.R:28:1): (code run outside of `test_that()`) ----------- Error: the leading minor of order 2 is not positive definite Backtrace: x 1. \-ARCokrig::cokm.predict(obj, input.new) test_ARCokrig.R:28:0 2. +-base::chol(R) 3. \-base::chol.default(R) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted ** running tests for arch 'x64' ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(ARCokrig) > > test_check("ARCokrig") [1] "optimization error, skip t=1" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") [1] "optimization error, skip t=2" [1] "Error in chol.default(R) : \n the leading minor of order 2 is not positive definite\n" attr(,"class") [1] "try-error" attr(,"condition") == Failed tests ================================================================ -- Error (test_ARCokrig.R:28:1): (code run outside of `test_that()`) ----------- Error: the leading minor of order 2 is not positive definite Backtrace: x 1. \-ARCokrig::cokm.predict(obj, input.new) test_ARCokrig.R:28:0 2. +-base::chol(R) 3. \-base::chol.default(R) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 4 ERRORs