* using log directory 'd:/Rcompile/CRANpkg/local/4.7/spsurvey.Rcheck' * using R Under development (unstable) (2026-05-01 r89993 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-05-03 19:05:35 UTC * checking for file 'spsurvey/DESCRIPTION' ... OK * this is package 'spsurvey' version '5.6.0' * 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 'spsurvey' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [3s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [3s] 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 ... [42s] OK * checking Rd files ... [2s] 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 ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [7s] ERROR Running examples in 'spsurvey-Ex.R' failed The error most likely occurred in: > ### Name: cont_cdftest > ### Title: Cumulative distribution function (CDF) inference for a > ### probability survey > ### Aliases: cont_cdftest > ### Keywords: survey > > ### ** Examples > > n <- 200 > mysiteID <- paste("Site", 1:n, sep = "") > dframe <- data.frame( + siteID = mysiteID, + wgt = runif(n, 10, 100), + xcoord = runif(n), + ycoord = runif(n), + stratum = rep(c("Stratum1", "Stratum2"), n / 2), + Resource_Class = sample(c("Agr", "Forest", "Urban"), n, replace = TRUE) + ) > ContVar <- numeric(n) > tst <- dframe$Resource_Class == "Agr" > ContVar[tst] <- rnorm(sum(tst), 10, 1) > tst <- dframe$Resource_Class == "Forest" > ContVar[tst] <- rnorm(sum(tst), 10.1, 1) > tst <- dframe$Resource_Class == "Urban" > ContVar[tst] <- rnorm(sum(tst), 10.5, 1) > dframe$ContVar <- ContVar > myvars <- c("ContVar") > mysubpops <- c("Resource_Class") > mypopsize <- data.frame( + Resource_Class = rep(c("Agr", "Forest", "Urban"), rep(2, 3)), + stratum = rep(c("Stratum1", "Stratum2"), 3), + Total = c(2500, 1500, 1000, 500, 600, 450) + ) > cont_cdftest(dframe, + vars = myvars, subpops = mysubpops, siteID = "siteID", + weight = "wgt", xcoord = "xcoord", ycoord = "ycoord", + stratumID = "stratum", popsize = mypopsize, testname = "RaoScott_First" + ) Error in as.data.frame.integer(x[[i]], optional = TRUE) : row names contain missing values Calls: cont_cdftest ... data.frame -> as.data.frame -> as.data.frame.integer Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [74s] ERROR Running 'testthat.R' [73s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(spsurvey) Loading required package: sf Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is TRUE Loading required package: survey Loading required package: grid Loading required package: Matrix Loading required package: survival Attaching package: 'survey' The following object is masked from 'package:graphics': dotchart > > test_check("spsurvey") Saving _problems/test-cont_cdftest-92.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 814 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-cont_cdftest.R:88:1'): (code run outside of `test_that()`) ───── Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values Backtrace: ▆ 1. └─spsurvey::cont_cdftest(...) at test-cont_cdftest.R:88:1 2. ├─base::rbind(...) 3. └─base::data.frame(...) 4. ├─base::as.data.frame(x[[i]], optional = TRUE) 5. └─base::as.data.frame.integer(x[[i]], optional = TRUE) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 814 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [5s] OK * checking PDF version of manual ... [24s] OK * checking HTML version of manual ... [21s] OK * DONE Status: 2 ERRORs