- using R Under development (unstable) (2025-12-21 r89216)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘surveysd/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘surveysd’ version ‘2.0.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 serialization versions ... OK
- checking whether package ‘surveysd’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.7 (1)’
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/2s] 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 ... [22s/28s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... NOTE
File ‘surveysd/libs/surveysd.so’:
Found non-API call to R: ‘ATTRIB’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
- checking sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] ERROR
Running examples in ‘surveysd-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: calc.stError
> ### Title: Calcualte point estimates and their standard errors using
> ### bootstrap weights.
> ### Aliases: calc.stError
> ### Keywords: manip survey
>
> ### ** Examples
>
> # Import data and calibrate
>
> library(surveysd)
> library(data.table)
Attaching package: ‘data.table’
The following object is masked from ‘package:base’:
%notin%
> setDTthreads(1)
> set.seed(1234)
> eusilc <- demo.eusilc(n = 4,prettyNames = TRUE)
Error in `[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < :
attempt access index 29/29 in VECTOR_ELT
Calls: demo.eusilc -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [14s/9s] ERROR
Running ‘testthat.R’ [14s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(surveysd)
>
>
> test_check("surveysd")
Saving _problems/test_calcstError-11.R
Saving _problems/test_drawbootstrap-10.R
Saving _problems/test_generateHHID-10.R
Saving _problems/test_ipf-4.R
Saving _problems/test_plot-11.R
Saving _problems/test_recalib-10.R
Saving _problems/test_rescaledbootstrap-12.R
[ FAIL 7 | WARN 0 | SKIP 1 | PASS 0 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1):
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_calcstError.R:11:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd:::demo.eusilc() at test_calcstError.R:11:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_drawbootstrap.R:10:1'): (code run outside of `test_that()`) ────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd:::demo.eusilc(n = 3) at test_drawbootstrap.R:10:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_generateHHID.R:10:1'): (code run outside of `test_that()`) ─────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd:::demo.eusilc() at test_generateHHID.R:10:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_ipf.R:4:1'): (code run outside of `test_that()`) ───────────────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd::demo.eusilc(n = 1, prettyNames = TRUE) at test_ipf.R:4:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_plot.R:11:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd:::demo.eusilc() at test_plot.R:11:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_recalib.R:10:1'): (code run outside of `test_that()`) ──────────
Error in ``[.data.table`(eusilc, , `:=`(povmd60, as.numeric(eqIncome < 0.6 * laeken::weightedMedian(eqIncome, w = db090))), by = year)`: attempt access index 29/29 in VECTOR_ELT
Backtrace:
▆
1. └─surveysd:::demo.eusilc(n = 4) at test_recalib.R:10:1
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test_rescaledbootstrap.R:12:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(eusilc, , `:=`(N.households, sum(db090[!duplicated(db030)])), by = db040)`: attempt access index 28/28 in VECTOR_ELT
Backtrace:
▆
1. ├─...[] at test_rescaledbootstrap.R:12:1
2. └─data.table:::`[.data.table`(...) at test_rescaledbootstrap.R:12:1
[ FAIL 7 | WARN 0 | SKIP 1 | PASS 0 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [15s/16s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘error_estimation.Rmd’ using rmarkdown
Quitting from error_estimation.Rmd:31-44 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 29/29 in VECTOR_ELT
---
Backtrace:
▆
1. └─surveysd::demo.eusilc(prettyNames = TRUE)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'error_estimation.Rmd' failed with diagnostics:
attempt access index 29/29 in VECTOR_ELT
--- failed re-building ‘error_estimation.Rmd’
--- re-building ‘ipf.Rmd’ using rmarkdown
Quitting from ipf.Rmd:30-36 [setup]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 29/29 in VECTOR_ELT
---
Backtrace:
▆
1. └─surveysd::demo.eusilc(1, prettyNames = TRUE)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'ipf.Rmd' failed with diagnostics:
attempt access index 29/29 in VECTOR_ELT
--- failed re-building ‘ipf.Rmd’
--- re-building ‘methodology.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘methodology.Rmd’
--- re-building ‘raowu.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘raowu.Rmd’
--- re-building ‘surveysd.Rmd’ using rmarkdown
Quitting from surveysd.Rmd:26-33 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 29/29 in VECTOR_ELT
---
Backtrace:
▆
1. └─surveysd::demo.eusilc(n = 2, prettyNames = TRUE)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'surveysd.Rmd' failed with diagnostics:
attempt access index 29/29 in VECTOR_ELT
--- failed re-building ‘surveysd.Rmd’
SUMMARY: processing the following files failed:
‘error_estimation.Rmd’ ‘ipf.Rmd’ ‘surveysd.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs, 1 NOTE