* using log directory ‘/data/localhost/ripley/R/packages/tests-MKL/ivreg2r.Rcheck’ * using R Under development (unstable) (2026-10-28 r90786) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2) GNU Fortran (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-10-30 02:29:41 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘ivreg2r/DESCRIPTION’ ... OK * this is package ‘ivreg2r’ version ‘0.1.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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘ivreg2r’ can be installed ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [18s/21s] OK * checking Rd files ... 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [131s/141s] [131s/141s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(ivreg2r) > > test_check("ivreg2r") Saving _problems/test-center-70.R Saving _problems/test-center-71.R Saving _problems/test-center-74.R Saving _problems/test-center-83.R Saving _problems/test-center-84.R Saving _problems/test-center-85.R Saving _problems/test-center-111.R Saving _problems/test-center-112.R Saving _problems/test-center-122.R Saving _problems/test-center-123.R Saving _problems/test-diagnostics-endogeneity-121.R Saving _problems/test-diagnostics-endogeneity-122.R Saving _problems/test-dofminus-194.R Saving _problems/test-hols-26.R Saving _problems/test-hols-27.R Saving _problems/test-partial-210.R Saving _problems/test-psd-380.R Saving _problems/test-summary-stats-53.R Saving _problems/test-summary-stats-54.R Saving _problems/test-summary-stats-55.R Saving _problems/test-summary-stats-56.R Saving _problems/test-vcov-cluster-kernel-269.R [ FAIL 22 | WARN 0 | SKIP 0 | PASS 15470 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-center.R:70:3'): center = FALSE gives identical results to default ── Expected `coef(fit_default)` to be identical to `coef(fit_false)`. Differences: actual | expected [1] 4.3995500735332377928 - 4.3995500735332360165 [1] [2] 0.0001746548190426903 - 0.0001746548190427152 [2] [3] 0.0691759165371778062 - 0.0691759165371777229 [3] [4] 0.0298660176168179282 - 0.0298660176168179074 [4] [5] 0.0432737557099871564 - 0.0432737557099871495 [5] [6] -0.1035896977211487741 - -0.1035896977211487324 [6] [7] 0.1351148307805978277 - 0.1351148307805977999 [7] [8] -0.0525980101685795537 - -0.0525980101685795329 [8] [9] 0.0794686146732868498 - 0.0794686146732868914 [9] [10] 0.2108961519721361255 | 0.2108961519721361255 [10] ... ... ... and 3 more ... ── Failure ('test-center.R:71:3'): center = FALSE gives identical results to default ── Expected `vcov(fit_default)` to be identical to `vcov(fit_false)`. Differences: actual | expected [1] 0.0841493198559540856 - 0.0841493198560141348 [1] [2] -0.0011287407602473610 - -0.0011287407602481878 [2] [3] 0.0024600000702807026 - 0.0024600000702830788 [3] [4] -0.0006565096247576861 - -0.0006565096247580734 [4] [5] 0.0003904869404775478 - 0.0003904869404778787 [5] [6] -0.0038174390612512625 - -0.0038174390612538741 [6] [7] 0.0008925515631938684 - 0.0008925515631944712 [7] [8] 0.0001595908000916201 - 0.0001595908000919412 [8] [9] -0.0018205929455032467 - -0.0018205929455036931 [9] [10] 0.0011291532949492269 - 0.0011291532949504086 [10] ... ... ... and 159 more ... ── Failure ('test-center.R:73:3'): center = FALSE gives identical results to default ── Expected `fit_default$diagnostics$overid$stat` to be identical to `fit_false$diagnostics$overid$stat`. Differences: `actual`: 74.1648776243615 `expected`: 74.1648776243598 ── Failure ('test-center.R:83:3'): center does not change 2SLS coefficients, sigma, or rss ── Expected `coef(fit_no)` to be identical to `coef(fit_yes)`. Differences: actual | expected [1] 4.399550073533236016 - 4.399550073533237793 [1] [2] 0.000174654819042715 - 0.000174654819042689 [2] [3] 0.069175916537177723 - 0.069175916537177778 [3] [4] 0.029866017616817907 - 0.029866017616817918 [4] [5] 0.043273755709987149 - 0.043273755709987163 [5] [6] -0.103589697721148732 - -0.103589697721148830 [6] [7] 0.135114830780597800 - 0.135114830780597828 [7] [8] -0.052598010168579533 - -0.052598010168579491 [8] [9] 0.079468614673286891 - 0.079468614673286975 [9] [10] 0.210896151972136126 - 0.210896151972136209 [10] ... ... ... and 3 more ... ── Failure ('test-center.R:84:3'): center does not change 2SLS coefficients, sigma, or rss ── Expected `fit_no$sigma` to be identical to `fit_yes$sigma`. Differences: `actual`: 0.324907605499211327 `expected`: 0.324907605499211272 ── Failure ('test-center.R:85:3'): center does not change 2SLS coefficients, sigma, or rss ── Expected `fit_no$rss` to be identical to `fit_yes$rss`. Differences: `actual`: 80.018233700313189 `expected`: 80.018233700313175 ── Failure ('test-center.R:111:3'): endog() leaves estimation invariant under center ── Expected `coef(fit_endog)` to be identical to `coef(fit_plain)`. Differences: actual | expected [1] 4.399550073533236016 - 4.399550073533237793 [1] [2] 0.000174654819042715 - 0.000174654819042689 [2] [3] 0.069175916537177723 - 0.069175916537177778 [3] [4] 0.029866017616817907 - 0.029866017616817918 [4] [5] 0.043273755709987149 - 0.043273755709987163 [5] [6] -0.103589697721148732 - -0.103589697721148830 [6] [7] 0.135114830780597800 - 0.135114830780597828 [7] [8] -0.052598010168579533 - -0.052598010168579491 [8] [9] 0.079468614673286891 - 0.079468614673286975 [9] [10] 0.210896151972136126 - 0.210896151972136209 [10] ... ... ... and 3 more ... ── Failure ('test-center.R:112:3'): endog() leaves estimation invariant under center ── Expected `vcov(fit_endog)` to be identical to `vcov(fit_plain)`. Differences: actual | expected [1] 0.08414931985604123810 - 0.08414931985606274867 [1] [2] -0.00112874076024860478 - -0.00112874076024894522 [2] [3] 0.00246000007028417686 - 0.00246000007028510017 [3] [4] -0.00065650962475826509 - -0.00065650962475841384 [4] [5] 0.00039048694047803660 - 0.00039048694047817380 [5] [6] -0.00381743906125508407 - -0.00381743906125607893 [6] [7] 0.00089255156319474713 - 0.00089255156319503325 [7] [8] 0.00015959080009205382 - 0.00015959080009224006 [8] [9] -0.00182059294550411359 - -0.00182059294550423936 [9] [10] 0.00112915329495070029 - 0.00112915329495110600 [10] ... ... ... and 159 more ... ── Failure ('test-center.R:122:3'): orthog() leaves estimation invariant under center ── Expected `coef(fit_orthog)` to be identical to `coef(fit_plain)`. Differences: actual | expected [1] 4.399550073533237793 - 4.399550073533236016 [1] [2] 0.000174654819042689 - 0.000174654819042715 [2] [3] 0.069175916537177778 - 0.069175916537177723 [3] [4] 0.029866017616817918 - 0.029866017616817907 [4] [5] 0.043273755709987163 - 0.043273755709987149 [5] [6] -0.103589697721148830 - -0.103589697721148732 [6] [7] 0.135114830780597828 - 0.135114830780597800 [7] [8] -0.052598010168579491 - -0.052598010168579533 [8] [9] 0.079468614673286975 - 0.079468614673286891 [9] [10] 0.210896151972136209 - 0.210896151972136126 [10] ... ... ... and 3 more ... ── Failure ('test-center.R:123:3'): orthog() leaves estimation invariant under center ── Expected `vcov(fit_orthog)` to be identical to `vcov(fit_plain)`. Differences: actual | expected [1] 0.08414931985606274867 - 0.08414931985604123810 [1] [2] -0.00112874076024894522 - -0.00112874076024860478 [2] [3] 0.00246000007028510017 - 0.00246000007028417686 [3] [4] -0.00065650962475841384 - -0.00065650962475826509 [4] [5] 0.00039048694047817380 - 0.00039048694047803660 [5] [6] -0.00381743906125607893 - -0.00381743906125508407 [6] [7] 0.00089255156319503325 - 0.00089255156319474713 [7] [8] 0.00015959080009224006 - 0.00015959080009205382 [8] [9] -0.00182059294550423936 - -0.00182059294550411359 [9] [10] 0.00112915329495110600 - 0.00112915329495070029 [10] ... ... ... and 159 more ... ── Failure ('test-diagnostics-endogeneity.R:121:3'): endog = 'educ' does not change coef/vcov of the overid robust fit ── Expected `coef(fit_plain)` to be identical to `coef(fit_endog)`. Differences: actual | expected [1] -0.38487181086306687661 - -0.38487181086306826439 [1] [2] 0.09640023903450302412 - 0.09640023903450313514 [2] [3] 0.04219297142790447847 | 0.04219297142790447847 [3] [4] -0.00083231097373242049 - -0.00083231097373242060 [4] ── Failure ('test-diagnostics-endogeneity.R:122:3'): endog = 'educ' does not change coef/vcov of the overid robust fit ── Expected `vcov(fit_plain)` to be identical to `vcov(fit_endog)`. Differences: actual | expected [1] 1.1234579746148480872137 - 1.1234579746145798573309 [1] [2] -0.0910664480402361420364 - -0.0910664480402167408890 [2] [3] 0.0058089637633871454847 - 0.0058089637633871654340 [3] [4] -0.0001918826928814951161 - -0.0001918826928814552717 [4] [5] -0.0910664480402361420364 - -0.0910664480402167408890 [5] [6] 0.0074757800123482886362 - 0.0074757800123468913164 [6] [7] -0.0006136897548535580772 - -0.0006136897548535569930 [7] [8] 0.0000191281872230357507 - 0.0000191281872230325320 [8] [9] 0.0058089637633871454847 - 0.0058089637633871654340 [9] [10] -0.0006136897548535580772 - -0.0006136897548535569930 [10] ... ... ... and 6 more ... ── Failure ('test-dofminus.R:194:3'): mroz iid small: coef, VCV, and diagnostics invariant to small (facts 1-4) ── Expected `coef(fit_small)` to be identical to `coef(fit)`. Differences: actual | expected [1] -0.38487181086306826439 - -0.38487181086306687661 [1] [2] 0.09640023903450313514 - 0.09640023903450302412 [2] [3] 0.04219297142790447847 | 0.04219297142790447847 [3] [4] -0.00083231097373242060 - -0.00083231097373242049 [4] Backtrace: ▆ 1. └─ivreg2r (local) expect_small_invariance(fit_iid, fit_iid_small, vcv_factor) at test-dofminus.R:194:3 2. └─testthat::expect_identical(coef(fit_small), coef(fit)) at test-dofminus.R:48:3 ── Failure ('test-hols.R:26:3'): empty-endogenous fit is exact OLS (iid) ─────── Expected `coef(f_hols)` to be identical to `coef(f_ols)`. Differences: actual | expected [1] -0.52204067617686777947 - -0.52204067617686789049 [1] [2] 0.04156650905855113765 | 0.04156650905855113765 [2] [3] -0.00081119302889332348 - -0.00081119302889332337 [3] [4] 0.10748964945103364754 | 0.10748964945103364754 [4] ── Failure ('test-hols.R:27:3'): empty-endogenous fit is exact OLS (iid) ─────── Expected `vcov(f_hols)` to be identical to `vcov(f_ols)`. Differences: actual | expected [1] 0.039085963220000137507970 | 0.039085963220000137507970 [1] [2] -0.000952425989873619720585 - -0.000952425989873619612165 [2] [3] 0.000023014482093869667145 - 0.000023014482093869660369 [3] [4] -0.002452256331603899601468 | -0.002452256331603899601468 [4] [5] -0.000952425989873619720585 - -0.000952425989873619612165 [5] [6] 0.000171963542296900412506 - 0.000171963542296900385401 [6] [7] -0.000004889890692766888473 - -0.000004889890692766886779 [7] [8] -0.000011199672084797600589 - -0.000011199672084797597201 [8] [9] 0.000023014482093869667145 - 0.000023014482093869660369 [9] [10] -0.000004889890692766888473 - -0.000004889890692766886779 [10] ... ... ... and 6 more ... ── Failure ('test-partial.R:210:3'): nosmall x small compositional identity: VCVs differ by exactly the df ratio ── Expected `coef(fit_nosmall_small)` to equal `coef(fit_basic_small)`. Differences: actual != expected but don't know how to show the difference ── Failure ('test-psd.R:379:3'): KP identification stats are never psd-corrected (ranktest parity) ── Expected `res_psd0$fit$diagnostics$underid$stat` to be identical to `res_null$fit$diagnostics$underid$stat`. Differences: `actual`: 3.62858191820270504 `expected`: 3.62858191820270459 ── Failure ('test-summary-stats.R:53:3'): R-squared is invariant to VCE type ─── Expected `fit_iid$r.squared` to be identical to `fit_hc$r.squared`. Differences: `actual`: 0.15258031704248132 `expected`: 0.15258031704248143 ── Failure ('test-summary-stats.R:54:3'): R-squared is invariant to VCE type ─── Expected `fit_iid$adj.r.squared` to be identical to `fit_hc$adj.r.squared`. Differences: `actual`: 0.14658442305929131 `expected`: 0.14658442305929154 ── Failure ('test-summary-stats.R:55:3'): R-squared is invariant to VCE type ─── Expected `fit_iid$r2u` to be identical to `fit_hc$r2u`. Differences: `actual`: 0.77187408240651012 `expected`: 0.77187408240651023 ── Failure ('test-summary-stats.R:56:3'): R-squared is invariant to VCE type ─── Expected `fit_iid$r2c` to be identical to `fit_hc$r2c`. Differences: `actual`: 0.15258031704248132 `expected`: 0.15258031704248143 ── Failure ('test-vcov-cluster-kernel.R:268:3'): dkraay=3 is equivalent to explicit cluster+kernel on tvar ── Expected `fit_dk$vcov` to equal `fit_manual$vcov`. Differences: actual | expected [1] 4.2169040985015 - 4.2169040985084 [1] [2] -0.0024463922479 | -0.0024463922479 [2] [3] 0.3061073492182 - 0.3061073492187 [3] [4] -0.0179697093639 | -0.0179697093639 [4] [5] 0.3217920625710 - 0.3217920625716 [5] [6] -0.3152110279371 - -0.3152110279374 [6] [7] -0.0024463922479 | -0.0024463922479 [7] [8] 0.0000014375163 | 0.0000014375163 [8] [9] -0.0001870288688 | -0.0001870288688 [9] actual | expected [10] 0.0000110484880 | 0.0000110484880 [10] [11] -0.0002003013488 | -0.0002003013488 [11] [12] 0.0001745256137 | 0.0001745256137 [12] [13] 0.3061073492182 - 0.3061073492187 [13] [14] -0.0001870288688 | -0.0001870288688 [14] [15] 0.0272467420640 - 0.0272467420641 [15] [16] -0.0016488292083 | -0.0016488292083 [16] [17] 0.0309496378639 | 0.0309496378639 [17] [18] -0.0195437278014 | -0.0195437278014 [18] actual | expected [22] 0.0001014287727 | 0.0001014287727 [22] [23] -0.0019577160474 | -0.0019577160474 [23] [24] 0.0012330468735 | 0.0012330468735 [24] [25] 0.3217920625710 - 0.3217920625716 [25] [26] -0.0002003013488 | -0.0002003013488 [26] [27] 0.0309496378639 | 0.0309496378639 [27] [28] -0.0019577160474 | -0.0019577160474 [28] [29] 0.0439363751189 - 0.0439363751190 [29] [30] -0.0264709258511 - -0.0264709258512 [30] [31] -0.3152110279371 - -0.3152110279374 [31] ... ... ... and 5 more ... [ FAIL 22 | WARN 0 | SKIP 0 | PASS 15470 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s/25s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-MKL/ivreg2r.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:58.18, 200.70 + 10.27