CRAN Package Check Results for Package spsurvey

Last updated on 2026-05-03 01:50:46 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 5.6.0 31.67 287.71 319.38 OK
r-devel-linux-x86_64-debian-gcc 5.6.0 20.34 187.51 207.85 OK
r-devel-linux-x86_64-fedora-clang 5.6.0 54.00 447.60 501.60 OK
r-devel-linux-x86_64-fedora-gcc 5.6.0 53.00 453.74 506.74 OK
r-devel-windows-x86_64 5.6.0 34.00 249.00 283.00 ERROR
r-patched-linux-x86_64 5.6.0 31.58 265.50 297.08 OK
r-release-linux-x86_64 5.6.0 30.81 266.25 297.06 OK
r-release-macos-arm64 5.6.0 7.00 67.00 74.00 OK
r-release-macos-x86_64 5.6.0 20.00 307.00 327.00 OK
r-release-windows-x86_64 5.6.0 32.00 254.00 286.00 OK
r-oldrel-macos-arm64 5.6.0 OK
r-oldrel-macos-x86_64 5.6.0 23.00 400.00 423.00 OK
r-oldrel-windows-x86_64 5.6.0 45.00 340.00 385.00 OK

Check Details

Version: 5.6.0
Check: examples
Result: 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 Flavor: r-devel-windows-x86_64

Version: 5.6.0
Check: tests
Result: ERROR Running 'testthat.R' [72s] 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 Flavor: r-devel-windows-x86_64