* using log directory 'd:/Rcompile/CRANpkg/local/4.7/nlfh.Rcheck' * using R Under development (unstable) (2026-08-03 r90347 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * current time: 2026-08-04 17:01:09 UTC * checking for file 'nlfh/DESCRIPTION' ... OK * this is package 'nlfh' 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'nlfh' 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [5s] OK * checking Rd files ... [1s] 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 ... [0s] 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 ... [1s] ERROR Running examples in 'nlfh-Ex.R' failed The error most likely occurred in: > ### Name: fit_fh > ### Title: Fit a Fay-Herriot Model > ### Aliases: fit_fh > > ### ** Examples > > data(acs_dat) > acs_small <- as.data.frame(acs_dat[1:500, ]) > example_control <- list(n_iter = 50, burn_in = 25, progress = FALSE) > > fit_linear <- fit_fh( + MedInc ~ SNAPRate + PovRate + White + Black + Hispanic + Asian, + sampling_variance = MedIncSE^2, + data = acs_small, + method = "linear", + control = example_control + ) > > X <- model.matrix( + MedInc ~ SNAPRate + PovRate + White + Black + Hispanic + Asian, + data = acs_small + ) > fit_matrix <- fit_fh( + y = acs_small$MedInc, + X = X, + sampling_variance = acs_small$MedIncSE^2, + method = "linear", + control = example_control + ) > > fit_rnn <- fit_fh( + MedInc ~ ., + sampling_variance = MedIncSE^2, + data = acs_small, + method = "rnn", + control = example_control + ) > > fit_bart <- fit_fh( + MedInc ~ SNAPRate + PovRate + White, + sampling_variance = MedIncSE^2, + data = acs_small, + method = "bart", + control = example_control + ) Error in parse(text = deparse(RNGkind)[-1L]) : :1:22: unexpected ')' 1: binom.kind = NULL) ^ Calls: fit_fh ... validObject -> anyStrings -> isTRUE -> validityMethod -> parse Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(nlfh) > > test_check("nlfh") Saving _problems/test-core-api-24.R Saving _problems/test-core-api-60.R Saving _problems/test-core-api-102.R Saving _problems/test-core-api-151.R Saving _problems/test-core-api-202.R Saving _problems/test-formula-interface-33.R Saving _problems/test-formula-interface-64.R Saving _problems/test-posterior-draws-62.R Saving _problems/test-posterior-draws-86.R Saving _problems/test-summary-75.R [ FAIL 10 | WARN 0 | SKIP 0 | PASS 97 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-core-api.R:18:3'): all three methods return nlfh_fit objects with finite DIC ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-core-api.R:18:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-core-api.R:54:3'): output dimensions are consistent across methods ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-core-api.R:54:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-core-api.R:93:3'): method dispatch selects the requested model implementation ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. ├─testthat::expect_s3_class(...) at test-core-api.R:93:3 2. │ └─testthat::quasi_label(enquo(object)) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─nlfh::fit_fh(...) 5. ├─base::do.call(fit_fh_bart, args) 6. └─nlfh (local) ``(...) 7. └─dbarts::dbartsControl(...) 8. └─methods::new(...) 9. ├─methods::initialize(value, ...) 10. └─dbarts (local) initialize(value, ...) 11. ├─methods::callNextMethod() 12. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 13. └─methods::validObject(.Object) 14. ├─methods (local) anyStrings(validityMethod(object)) 15. │ └─base::isTRUE(x) 16. └─dbarts (local) validityMethod(object) 17. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-core-api.R:139:3'): method-specific fitting functions are public-facing ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. ├─testthat::expect_s3_class(...) at test-core-api.R:139:3 2. │ └─testthat::quasi_label(enquo(object)) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─nlfh::fit_fh_bart(...) 5. └─dbarts::dbartsControl(...) 6. └─methods::new(...) 7. ├─methods::initialize(value, ...) 8. └─dbarts (local) initialize(value, ...) 9. ├─methods::callNextMethod() 10. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 11. └─methods::validObject(.Object) 12. ├─methods (local) anyStrings(validityMethod(object)) 13. │ └─base::isTRUE(x) 14. └─dbarts (local) validityMethod(object) 15. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-core-api.R:191:3'): random-effect variance prior controls are accepted for all methods ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-core-api.R:191:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-formula-interface.R:27:3'): formula interface works for nonlinear methods ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-formula-interface.R:27:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-formula-interface.R:58:3'): fit_fh dispatches all model families from formula inputs ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-formula-interface.R:58:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-posterior-draws.R:56:3'): posterior_draws extracts u draws when available ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-posterior-draws.R:56:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-posterior-draws.R:80:3'): posterior_draws gives helpful errors for unavailable variables ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-posterior-draws.R:80:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ── Error ('test-summary.R:69:3'): summary.nlfh_fit handles BART fits without coefficient summaries ── Error in `parse(text = deparse(RNGkind)[-1L])`: :1:22: unexpected ')' 1: binom.kind = NULL) ^ Backtrace: ▆ 1. └─nlfh::fit_fh(...) at test-summary.R:69:3 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) [ FAIL 10 | WARN 0 | SKIP 0 | PASS 97 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [2s] ERROR Error(s) in re-building vignettes: --- re-building 'model-comparison.Rmd' using rmarkdown Quitting from model-comparison.Rmd:54-80 [fit-models] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `parse()`: ! :1:22: unexpected ')' 1: binom.kind = NULL) ^ --- Backtrace: ▆ 1. └─nlfh::fit_fh(...) 2. ├─base::do.call(fit_fh_bart, args) 3. └─nlfh (local) ``(...) 4. └─dbarts::dbartsControl(...) 5. └─methods::new(...) 6. ├─methods::initialize(value, ...) 7. └─dbarts (local) initialize(value, ...) 8. ├─methods::callNextMethod() 9. └─methods (local) .nextMethod(.Object = .Object, ... = ...) 10. └─methods::validObject(.Object) 11. ├─methods (local) anyStrings(validityMethod(object)) 12. │ └─base::isTRUE(x) 13. └─dbarts (local) validityMethod(object) 14. └─base::parse(text = deparse(RNGkind)[-1L]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'model-comparison.Rmd' failed with diagnostics: :1:22: unexpected ')' 1: binom.kind = NULL) ^ --- failed re-building 'model-comparison.Rmd' SUMMARY: processing the following file failed: 'model-comparison.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 3 ERRORs