* using log directory 'd:/Rcompile/CRANpkg/local/4.4/bnmonitor.Rcheck' * using R version 4.4.1 (2024-06-14 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'bnmonitor/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'bnmonitor' version '0.2.1' * 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 'bnmonitor' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] OK * checking whether startup messages can be suppressed ... [3s] 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 ... [15s] 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 examples ... [9s] ERROR Running examples in 'bnmonitor-Ex.R' failed The error most likely occurred in: > ### Name: final_node_monitor > ### Title: Final node monitors > ### Aliases: final_node_monitor > > ### ** Examples > > final_node_monitor(chds_bn, chds[1:100,]) Error in `pmap()`: ℹ In index: 1. Caused by error in `class(x) <- unique.default(c("AsIs", oldClass(x)))`: ! attempt to set an attribute on NULL Backtrace: ▆ 1. ├─bnmonitor::final_node_monitor(chds_bn, chds[1:100, ]) 2. │ └─... %>% unname 3. ├─base::unname(.) 4. ├─base::unlist(.) 5. ├─purrr::map2(., worst.level, standardize) 6. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 7. │ └─purrr:::vctrs_vec_compat(.x, .purrr_user_env) 8. ├─purrr::pmap(., ~pass.ev(.x, df = df, dag.grain = dag.grain)) 9. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress) 10. │ ├─purrr:::with_indexed_errors(...) 11. │ │ └─base::withCallingHandlers(...) 12. │ ├─purrr:::call_with_cleanup(...) 13. │ └─bnmonitor (local) .f(x = .l[[1L]][[i]], ...) 14. │ └─bnmonitor:::pass.ev(.x, df = df, dag.grain = dag.grain) 15. │ ├─gRain::querygrain(...) 16. │ └─gRain::setEvidence(...) 17. │ └─gRain:::set_evidence_worker(...) 18. │ └─gRain:::grain_evidence_new(evidence, universe(object)$levels) 19. │ └─gRain:::grain_evidence2dataframe(out) 20. │ └─base::lapply(x, function(z) as.data.frame(I(z))) 21. │ └─gRain (local) FUN(X[[i]], ...) 22. │ ├─base::as.data.frame(I(z)) 23. │ └─base::I(z) 24. └─base::.handleSimpleError(...) 25. └─purrr (local) h(simpleError(msg, call)) 26. └─cli::cli_abort(...) 27. └─rlang::abort(...) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [5s] OK Running 'testthat.R' [4s] * checking PDF version of manual ... [23s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 1 ERROR