* using log directory ‘/Users/ripley/R/packages/tests-devel/ivreg.Rcheck’ * using R Under development (unstable) (2026-01-29 r89350) * using platform: aarch64-apple-darwin25.2.0 * R was compiled by Apple clang version 17.0.0 (clang-1700.6.3.2) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.2 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘ivreg/DESCRIPTION’ ... OK * this is package ‘ivreg’ version ‘0.6-5’ * 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 ‘ivreg’ can be installed ... OK * checking installed package size ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... 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 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’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library("testthat") > library("ivreg") > > test_check("ivreg") Saving _problems/test-case-deletion-31.R Saving _problems/test-case-deletion-43.R Saving _problems/test-predict-4.R [ FAIL 3 | WARN 0 | SKIP 0 | PASS 49 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-case-deletion.R:31:3'): deletion statistics computed correctly with na.exclude ── Error in `match.arg(type, c("variance", "robustness"))`: 'arg' should be one of "variance", "robustness" Backtrace: ▆ 1. ├─testthat::expect_true(all(is.na(dffits(m.miss)[c(1, 4, 10)]))) at test-case-deletion.R:31:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─stats::dffits(m.miss) 5. └─stats::weighted.residuals(model) 6. ├─stats::weights(obj, "working") 7. └─ivreg:::weights.ivreg(obj, "working") 8. └─base::match.arg(type, c("variance", "robustness")) ── Error ('test-case-deletion.R:43:3'): rownames of deletion statistics preserved with na.omit ── Error in `match.arg(type, c("variance", "robustness"))`: 'arg' should be one of "variance", "robustness" Backtrace: ▆ 1. ├─testthat::expect_equal(names(dffits(m.miss.2)), nms) at test-case-deletion.R:43:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─stats::dffits(m.miss.2) 5. └─stats::weighted.residuals(model) 6. ├─stats::weights(obj, "working") 7. └─ivreg:::weights.ivreg(obj, "working") 8. └─base::match.arg(type, c("variance", "robustness")) ── Error ('test-predict.R:4:1'): (code run outside of `test_that()`) ─────────── Error in `match.arg(type, c("variance", "robustness"))`: 'arg' should be one of "variance", "robustness" Backtrace: ▆ 1. ├─stats::predict(deq, newdata = new, se.fit = TRUE, interval = "prediction") at test-predict.R:4:1 2. └─ivreg:::predict.ivreg(deq, newdata = new, se.fit = TRUE, interval = "prediction") 3. ├─stats::sigma(object) 4. └─stats:::sigma.default(object) 5. ├─stats::deviance(object, ...) 6. ├─ivreg:::deviance.ivreg(object, ...) 7. ├─base::NextMethod() 8. └─stats:::deviance.lm(object, ...) 9. └─stats::weighted.residuals(object) 10. ├─stats::weights(obj, "working") 11. └─ivreg:::weights.ivreg(obj, "working") 12. └─base::match.arg(type, c("variance", "robustness")) [ FAIL 3 | WARN 0 | SKIP 0 | PASS 49 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... ERROR Error(s) in re-building vignettes: --- re-building ‘Diagnostics-for-2SLS-Regression.Rmd’ using rmarkdown Quitting from Diagnostics-for-2SLS-Regression.Rmd:174-177 [unnamed-chunk-4] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `match.arg()`: ! 'arg' should be one of "variance", "robustness" --- Backtrace: ▆ 1. ├─base::plot(deq) 2. └─ivreg:::plot.ivreg(deq) 3. ├─base::plot(x, ...) 4. ├─ivreg:::plot.ivreg(x, ...) 5. ├─base::NextMethod() 6. └─stats:::plot.lm(x, ...) 7. ├─stats::deviance(x) 8. ├─ivreg:::deviance.ivreg(x) 9. ├─base::NextMethod() 10. └─stats:::deviance.lm(x) 11. └─stats::weighted.residuals(object) 12. ├─stats::weights(obj, "working") 13. └─ivreg:::weights.ivreg(obj, "working") 14. └─base::match.arg(type, c("variance", "robustness")) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Diagnostics-for-2SLS-Regression.Rmd' failed with diagnostics: 'arg' should be one of "variance", "robustness" --- failed re-building ‘Diagnostics-for-2SLS-Regression.Rmd’ --- re-building ‘ivreg.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘ivreg.Rmd’ SUMMARY: processing the following file failed: ‘Diagnostics-for-2SLS-Regression.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs See ‘/Users/ripley/R/packages/tests-devel/ivreg.Rcheck/00check.log’ for details. 26.87 real 20.23 user 5.76 sys