R Under development (unstable) (2026-02-26 r89489 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(vote) > > test_check("vote") Results of Single transferable vote with equal preferences ========================================================== Number of valid votes: 4 Number of invalid votes: 0 Number of candidates: 4 Number of seats: 2 | | 1| 2-trans| 2| 3-trans| 3| |:----------|-----:|-------:|-----:|-------:|-----:| |Quota | 1.334| | 1.334| | 1.334| |C1 | 1.000| 0.110| 1.110| 0.555| 1.666| |C2 | 1.500| -0.166| | | | |C3 | 1.000| 0.000| 1.000| 0.000| 1.000| |C4 | 0.500| 0.055| 0.555| -0.555| | |Elected | C2| | | | C1| |Eliminated | | | C4| | | Elected: C2, C1 Results of Single transferable vote (weighted) with equal preferences ===================================================================== Number of valid votes: 4 Number of invalid votes: 0 Number of candidates: 4 Number of seats: 2 | | 1| 2-trans| 2| 3-trans| 3| |:----------|-----:|-------:|-----:|-------:|-----:| |Quota | 2.668| | 2.667| | 2.667| |C1 | 1.000| 0.000| 1.000| -1.0| | |C2 | 2.500| 0.000| 2.500| 0.5| 3.000| |C3 | 4.000| -1.332| | | | |C4 | 0.500| 1.332| 1.832| 0.5| 2.332| |Elected | C3| | | | C2| |Eliminated | | | C1| | | Elected: C3, C2 Detected 24 invalid votes. Number of valid votes is 596 . Use invalid.votes(...) function to view discarded records. Results of Single transferable vote =================================== Number of valid votes: 596 Number of invalid votes: 24 Number of candidates: 10 Number of seats: 5 | | 1| 2-trans| 2| 3-trans| 3| 4-trans| 4| 5-trans| 5| 6-trans| 6| 7-trans| 7| 8-trans| 8| 9-trans| 9| |:----------|-------:|-------:|-------:|-------:|------:|-------:|------:|-------:|------:|-------:|-------:|-------:|------:|-------:|-------:|-------:|-------:| |Quota | 99.334| | 98.574| | 98.235| | 97.735| | 96.148| | 95.857| | 95.530| | 85.957| | 84.602| |Tilmann | 73.000| 0.496| 73.496| 0.801| 74.297| 2.016| 76.313| 4.196| 80.509| 3.098| 83.607| 0.236| 83.843| 12.939| 96.782| -10.825| | |Julie | 40.000| 1.653| 41.653| 2.158| 43.810| 6.331| 50.141| 2.347| 52.487| 6.000| 58.487| 3.174| 61.661| -61.661| | | | |Jasper | 119.000| -19.666| | | | | | | | | | | | | | | | |Li | 105.000| 4.297| 109.297| -10.723| | | | | | | | | | | | | | |Wang | 20.000| 0.661| 20.661| 0.229| 20.890| -20.890| | | | | | | | | | | | |Hillary | 63.000| 1.818| 64.818| 2.060| 66.878| 0.000| 66.878| 3.280| 70.158| 5.098| 75.256| 0.186| 75.441| 8.140| 83.581| 6.575| 90.156| |Claire | 54.000| 2.314| 56.314| 2.223| 58.537| 2.016| 60.553| 3.347| 63.900| 1.098| 64.998| 0.644| 65.642| 11.863| 77.505| 1.540| 79.045| |Oscar | 27.000| 0.165| 27.165| 0.196| 27.361| 1.196| 28.558| 0.000| 28.558| -28.558| | | | | | | | |Declan | 22.000| 1.487| 23.487| 0.572| 24.059| 2.000| 26.059| -26.059| | | | | | | | | | |Roisin | 73.000| 2.975| 75.975| 1.128| 77.102| 5.331| 82.433| 6.543| 88.976| 12.098| 101.074| -5.217| | | | | | |Elected | Jasper| | Li| | | | | | | | Roisin| | | | Tilmann| | Hillary| |Eliminated | | | | | Wang| | Declan| | Oscar| | | | Julie| | | | | Elected: Jasper, Li, Roisin, Tilmann, Hillary Detected 24 invalid votes. Number of valid votes is 596 . Use invalid.votes(...) function to view discarded records. Results of Single transferable vote (weighted) ============================================== Number of valid votes: 596 Number of invalid votes: 24 Number of candidates: 10 Number of seats: 5 | | 1| 2-trans| 2| 3-trans| 3| 4-trans| 4| 5-trans| 5| 6-trans| 6| 7-trans| 7| 8-trans| 8| 9-trans| 9| |:----------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|--------:|-------:|--------:|-------:|-------:|-------:|--------:|-------:|-------:|-------:| |Quota | 533.931| | 531.083| | 529.164| | 527.998| | 518.915| | 517.394| | 515.781| | 465.298| | 455.860| |Tilmann | 413.944| 1.864| 415.808| 4.342| 420.150| 13.522| 433.672| 21.611| 455.283| 21.303| 476.586| 1.226| 477.812| 65.053| 542.865| -77.567| | |Julie | 208.643| 6.378| 215.022| 12.209| 227.230| 26.582| 253.812| 6.719| 260.531| 30.002| 290.534| 15.248| 305.782| -305.782| | | | |Jasper | 609.473| -75.541| | | | | | | | | | | | | | | | |Li | 571.317| 19.225| 590.542| -59.458| | | | | | | | | | | | | | |Wang | 95.630| 2.927| 98.557| 1.165| 99.722| -99.722| | | | | | | | | | | | |Hillary | 342.735| 6.036| 348.771| 9.998| 358.769| 0.000| 358.769| 8.707| 367.476| 28.613| 396.089| 0.794| 396.883| 32.919| 429.802| 47.107| 476.909| |Claire | 317.927| 7.181| 325.108| 13.015| 338.123| 9.748| 347.871| 11.264| 359.135| 3.976| 363.111| 3.752| 366.864| 56.361| 423.225| 11.584| 434.809| |Oscar | 152.794| 0.985| 153.779| 0.809| 154.587| 10.327| 164.914| 0.000| 164.914| -164.914| | | | | | | | |Declan | 94.306| 5.095| 99.401| 4.460| 103.862| 10.728| 114.589| -114.589| | | | | | | | | | |Roisin | 396.812| 11.613| 408.425| 5.782| 414.208| 24.154| 438.362| 29.957| 468.318| 74.936| 543.254| -25.860| | | | | | |Elected | Jasper| | Li| | | | | | | | Roisin| | | | Tilmann| | Hillary| |Eliminated | | | | | Wang| | Declan| | Oscar| | | | Julie| | | | | Elected: Jasper, Li, Roisin, Tilmann, Hillary [ FAIL 0 | WARN 0 | SKIP 1 | PASS 36 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-stv.R:36:5' [ FAIL 0 | WARN 0 | SKIP 1 | PASS 36 ] > > proc.time() user system elapsed 6.84 1.21 8.15