R Under development (unstable) (2025-05-30 r88253 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # unit testing > if (require(RUnit, quietly = TRUE)) { + + # load package + library(spcosa) + + # define the test suite + testSuite <- defineTestSuite( + name = "spcosa", + dirs = file.path(getwd(), "unitTests"), + testFileRegexp = "^runit_", + testFuncRegexp = "^test_" + ) + + # run test suite + testResult <- runTestSuite(testSuite) + + # print HTML version to a file + printHTMLProtocol(testResult, fileName = "unitTesting.html") + } Loading required package: rJava Executing test function test_estimate ... Loading required package: sp done successfully. Executing test function test_stratify ... Loading required package: sf Linking to GEOS 3.13.1, GDAL 3.11.0, PROJ 9.6.0; sf_use_s2() is TRUE Reading layer `farmsum' from data source `D:\RCompile\CRANincoming\R-devel\lib\spcosa\maps' using driver `ESRI Shapefile' Simple feature collection with 1 feature and 4 fields Geometry type: POLYGON Dimension: XY Bounding box: xmin: 259229.1 ymin: 587145.2 xmax: 259440 ymax: 587397.8 CRS: NA Error : 'object' has insufficient grid cells In addition: There were 50 or more warnings (use warnings() to see the first 50) Error : 'nStrata' should be an integer of length 1 Error : 'nStrata' should be a strictly positive integer Error : 'priorPoints' is not of class "SpatialPoints" Error : 'equalArea' should be FALSE in case of prior points Error : 'priorPoints' does not contain coordinates done successfully. Executing test function test_stratifyCollapsedSolution ... Timing stopped at: 0 0 0 Error in DEACTIVATED("Not needed anymore. It only slows down building packages") : Not needed anymore. It only slows down building packages 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 done successfully. > > proc.time() user system elapsed 21.37 0.53 21.67