R Under development (unstable) (2026-01-21 r89314 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 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. > library(testthat) > library(surveydatar) Attaching package: 'surveydatar' The following object is masked from 'package:base': %||% > > test_check("surveydatar") New variables added with custom labels: newvar Saving _problems/test-surveymetadatafunctions-688.R Survey data object: 10 observations of 29 variables with 20 question groups Separator patterns: Variable names: '_' (e.g. Q1_1) Variable labels:' - ' between statements New variables added with custom labels: new_col Existing variables modified with new labels: uid Existing variables modified with new labels: uid New variables added with custom labels: new_var1, new_var2 Existing variables modified with new labels: uid Existing variables modified with new labels: uid New variables added with custom labels: new_var1, new_var2 New variables added with custom labels: csat_copy Variables added from join: new_var Variables added with default labels: score New variables added with custom labels: q1_4, q1_5 New variables added with custom labels: q1_4, q1_5 New variables added with custom labels: QG_1, QG_2 New variables added with default labels: s1, s2 New variables added with custom labels: q1_4, q1_5, q1_6 New variables added with custom labels: q1_4, q1_5, q1_6 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 198 (98.8% efficiency) Weight CV: 0.111 === WEIGHTING COMPLETE === Effective Sample Size: 198 (98.8% efficiency) Weight CV: 0.111 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 199 (99.6% efficiency) Weight CV: 0.060 === WEIGHTING COMPLETE === Effective Sample Size: 199 (99.6% efficiency) Weight CV: 0.060 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 198 (98.8% efficiency) Weight CV: 0.111 === WEIGHTING COMPLETE === Effective Sample Size: 198 (98.8% efficiency) Weight CV: 0.111 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 198 (98.8% efficiency) Weight CV: 0.111 === WEIGHTING COMPLETE === Effective Sample Size: 198 (98.8% efficiency) Weight CV: 0.111 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 199 (99.6% efficiency) Weight CV: 0.060 === WEIGHTING COMPLETE === Effective Sample Size: 199 (99.6% efficiency) Weight CV: 0.060 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 199 (99.6% efficiency) Weight CV: 0.060 === WEIGHTING COMPLETE === Effective Sample Size: 199 (99.6% efficiency) Weight CV: 0.060 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 128 (64.2% efficiency) Weight CV: 0.749 === WEIGHTING COMPLETE === Effective Sample Size: 128 (64.2% efficiency) Weight CV: 0.749 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 0.70 Weight cap: 3.5 Stage 1 complete: ESS: 177 (88.6% efficiency) Weight CV: 0.360 === WEIGHTING COMPLETE === Effective Sample Size: 177 (88.6% efficiency) Weight CV: 0.360 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 0.00 Weight cap: 3.5 Stage 1 complete: ESS: 199 (99.6% efficiency) Weight CV: 0.060 === WEIGHTING COMPLETE === Effective Sample Size: 199 (99.6% efficiency) Weight CV: 0.060 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 1.00 Weight cap: 3.5 Stage 1 complete: ESS: 130 (64.9% efficiency) Weight CV: 0.738 === WEIGHTING COMPLETE === Effective Sample Size: 130 (64.9% efficiency) Weight CV: 0.738 === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... === UNIFIED SURVEY WEIGHTING === === STAGE 1 === Preparing data... Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 0.50 Weight cap: 3.5 Stage 1 complete: ESS: 199 (99.6% efficiency) Weight CV: 0.060 === STAGE 2 === Building constraints from formulas... Processing weighting target for bias correction... Building optimized weights... Alpha (bias correction): 0.80 Weight cap: 3.5 Stage 2 complete: ESS: 166 (82.9% efficiency) Weight CV: 0.456 === WEIGHTING COMPLETE === Effective Sample Size: 166 (82.9% efficiency) Weight CV: 0.456 [ FAIL 1 | WARN 0 | SKIP 2 | PASS 1554 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Clipboard not available (2): 'test-tab-export.R:84:3', 'test-tab-export.R:106:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-surveymetadatafunctions.R:688:3'): get_updated_seps correctly handles separator position indexing ── Error in `puncts_to_pattern(names(sep_analysis$counts$statement_sep))`: object 'multis_pattern' not found Backtrace: ▆ 1. └─surveydatar::get_updated_seps(test_dat3, sep_analysis3, seps_to_use = seps_to_use3) at test-surveymetadatafunctions.R:688:3 2. ├─base::paste0(...) 3. └─surveydatar:::puncts_to_pattern(names(sep_analysis$counts$statement_sep)) [ FAIL 1 | WARN 0 | SKIP 2 | PASS 1554 ] Error: ! Test failures. Execution halted