CRAN Package Check Results for Maintainer ‘Xinyi Zhang <zhang.xinyi at nyu.edu>’

Last updated on 2024-11-19 09:50:32 CET.

Package ERROR OK
rjaf 1 11

Package rjaf

Current CRAN status: ERROR: 1, OK: 11

Version: 0.1.0
Check: tests
Result: ERROR Running 'testthat.R' [3s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(rjaf) > > test_check("rjaf") [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-rjaf.R:9:3'): rjaf function computes correctly ───────────────── <Rcpp::exception/C++Error/error/condition> Error: The number of unique treatment arms or clusters in the training set is less than the number of treatment arms or clusters specified! Backtrace: ▆ 1. └─rjaf::rjaf(...) at test-rjaf.R:9:3 2. └─base::lapply(...) 3. └─rjaf (local) FUN(X[[i]], ...) 4. ├─stats::kmeans(...) 5. │ └─base::as.matrix(x) 6. ├─base::t(...) 7. ├─base::do.call(...) 8. └─base::lapply(...) 9. └─rjaf (local) FUN(X[[i]], ...) 10. └─rjaf:::rjaf_cpp(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64