* using log directory ‘/Users/ripley/R/packages/tests-devel/climdex.pcic.Rcheck’ * using R Under development (unstable) (2023-05-06 r84400) * using platform: aarch64-apple-darwin22.4.0 (64-bit) * R was compiled by Apple clang version 14.0.3 (clang-1403.0.22.14.1) GNU Fortran (GCC) 12.2.0 * running under: macOS Ventura 13.3.1 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘climdex.pcic/DESCRIPTION’ ... OK * this is package ‘climdex.pcic’ version ‘1.1-11’ * 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 ‘climdex.pcic’ can be installed ... OK * used C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ * used C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ * used SDK: ‘MacOSX13.3.sdk’ * 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 * 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 ... 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... 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 ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘bootstrap.R’ [23s/23s] Running ‘test_helper_functions.R’ Running ‘test_indices.R’ Running ‘test_issue_7.R’ Running ‘test_primitives.R’ [24s/24s] ERROR Running the tests in ‘tests/bootstrap.R’ failed. Complete output: > load("exemplar_data.rda") > library(PCICt) > > if(require("RUnit", quietly=TRUE)) { + ## Run all the tests + testsuite <- defineTestSuite("climdex.pcic", dirs=".", testFileRegexp = "^test_.+.R$", testFuncRegexp = "^climdex.pcic.test.+") + climdex.pcic.test.result <- runTestSuite(testsuite, useOwnErrorHandler=F) + printTextProtocol(climdex.pcic.test.result) + stopifnot(climdex.pcic.test.result$climdex.pcic$nFail == 0 && climdex.pcic.test.result$climdex.pcic$nErr == 0) + } Executing test function climdex.pcic.test.running.mean ... done successfully. Executing test function climdex.pcic.test.climdex.gsl ... done successfully. Executing test function climdex.pcic.test.intake.routines ... [1] "Checking success..." [1] "su" [1] "id" [1] "txx" [1] "txn" [1] "tx10p" [1] "tx90p" Timing stopped at: 0.35 0.006 0.357 Error in checkEquals(valid.result, fun(ci), paste(index, "didn't match expected result: include.tmax is", : Mean relative difference: 0.001728072 tx90p didn't match expected result: include.tmax is 1 , include.tmin is 0 , include.prec is 0 In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 3: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 4: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry done successfully. Executing test function climdex.pcic.test.thresholds.edge.cases ... done successfully. Executing test function climdex.pcic.test.one.column.dates ... done successfully. Executing test function climdex.pcic.test.bootstrap.quantiles ... Checking in base for tmin, 10th percentile, day 1 Checking in base for tmin, 10th percentile, day 2 Checking in base for tmin, 10th percentile, day 185 Checking in base for tmin, 10th percentile, day 364 Checking in base for tmin, 10th percentile, day 365 Checking out base for tmin, 10th percentile Checking in base for tmin, 90th percentile, day 1 Checking in base for tmin, 90th percentile, day 2 Checking in base for tmin, 90th percentile, day 185 Checking in base for tmin, 90th percentile, day 364 Checking in base for tmin, 90th percentile, day 365 Checking out base for tmin, 90th percentile Checking in base for tmax, 10th percentile, day 1 Checking in base for tmax, 10th percentile, day 2 Checking in base for tmax, 10th percentile, day 185 Checking in base for tmax, 10th percentile, day 364 Checking in base for tmax, 10th percentile, day 365 Checking out base for tmax, 10th percentile Checking in base for tmax, 90th percentile, day 1 Checking in base for tmax, 90th percentile, day 2 Checking in base for tmax, 90th percentile, day 185 Checking in base for tmax, 90th percentile, day 364 Checking in base for tmax, 90th percentile, day 365 Checking out base for tmax, 90th percentile done successfully. Executing test function climdex.pcic.test.get.series.lengths.at.ends ... done successfully. Executing test function climdex.pcic.test.growing.season.length ... done successfully. Executing test function climdex.pcic.test.nday.consec.prec.max ... done successfully. Executing test function climdex.pcic.test.number.days.op.threshold ... done successfully. Executing test function climdex.pcic.test.percent.days.op.threshold ... Timing stopped at: 0.23 0.003 0.234 Error in checkEquals(ec.1018935.tx90p, tx90p) : Mean relative difference: 0.001728072 In addition: There were 34 warnings (use warnings() to see them) done successfully. Executing test function climdex.pcic.test.quantile ... done successfully. Executing test function climdex.pcic.test.select.blocks ... done successfully. Executing test function climdex.pcic.test.simple.precipitation.intensity.index ... done successfully. Executing test function climdex.pcic.test.spell.length.max ... done successfully. Executing test function climdex.pcic.test.threshold.exceedance.duration.index ... done successfully. Executing test function climdex.pcic.test.total.precip.op.threshold ... done successfully. RUNIT TEST PROTOCOL -- Sat May 6 11:14:40 2023 *********************************************** Number of test functions: 17 Number of errors: 0 Number of failures: 2 1 Test Suite : climdex.pcic - 17 test functions, 0 errors, 2 failures FAILURE in climdex.pcic.test.intake.routines: Error in checkEquals(valid.result, fun(ci), paste(index, "didn't match expected result: include.tmax is", : Mean relative difference: 0.001728072 tx90p didn't match expected result: include.tmax is 1 , include.tmin is 0 , include.prec is 0 FAILURE in climdex.pcic.test.percent.days.op.threshold: Error in checkEquals(ec.1018935.tx90p, tx90p) : Mean relative difference: 0.001728072 Details *************************** Test Suite: climdex.pcic Test function regexp: ^climdex.pcic.test.+ Test file regexp: ^test_.+.R$ Involved directory: . --------------------------- Test file: ./test_helper_functions.R climdex.pcic.test.running.mean: (5 checks) ... OK (0 seconds) --------------------------- Test file: ./test_indices.R climdex.pcic.test.climdex.gsl: (1 checks) ... OK (0.25 seconds) climdex.pcic.test.intake.routines: FAILURE !! (check number 11) Error in checkEquals(valid.result, fun(ci), paste(index, "didn't match expected result: include.tmax is", : Mean relative difference: 0.001728072 tx90p didn't match expected result: include.tmax is 1 , include.tmin is 0 , include.prec is 0 climdex.pcic.test.thresholds.edge.cases: (5 checks) ... OK (0.01 seconds) --------------------------- Test file: ./test_issue_7.R climdex.pcic.test.one.column.dates: (1 checks) ... OK (0.23 seconds) --------------------------- Test file: ./test_primitives.R climdex.pcic.test.bootstrap.quantiles: (24 checks) ... OK (21.79 seconds) climdex.pcic.test.get.series.lengths.at.ends: (1 checks) ... OK (0 seconds) climdex.pcic.test.growing.season.length: (1 checks) ... OK (0.24 seconds) climdex.pcic.test.nday.consec.prec.max: (4 checks) ... OK (0 seconds) climdex.pcic.test.number.days.op.threshold: (1 checks) ... OK (0 seconds) climdex.pcic.test.percent.days.op.threshold: FAILURE !! (check number 1) Error in checkEquals(ec.1018935.tx90p, tx90p) : Mean relative difference: 0.001728072 climdex.pcic.test.quantile: (3 checks) ... OK (0 seconds) climdex.pcic.test.select.blocks: (3 checks) ... OK (0 seconds) climdex.pcic.test.simple.precipitation.intensity.index: (1 checks) ... OK (0 seconds) climdex.pcic.test.spell.length.max: (2 checks) ... OK (0 seconds) climdex.pcic.test.threshold.exceedance.duration.index: (2 checks) ... OK (0 seconds) climdex.pcic.test.total.precip.op.threshold: (1 checks) ... OK (0 seconds) Error: climdex.pcic.test.result$climdex.pcic$nFail == 0 && climdex.pcic.test.result$climdex.pcic$nErr == .... is not TRUE Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/climdex.pcic.Rcheck/00check.log’ for details. 50.41 real 44.34 user 4.74 sys