Running ‘testthat.R’ [10m/11m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(abn)
  abn version 3.1.13 (2025-12-18) is loaded.
  To cite the package 'abn' in publications call: citation('abn').
  > 
  > # Set the number of threads for BLAS and OpenMP if possible
  > if (requireNamespace("RhpcBLASctl", quietly = TRUE)) {
  +   RhpcBLASctl::blas_set_num_threads(2)
  + } else {
  +   # E.g., on CRAN noSuggests environment, RhpcBLASctl is not available
  +   message("RhpcBLASctl is not available, BLAS thread control will not be set.")
  + }
  > 
  > test_check("abn")
  Loading required package: Matrix
  Running in single core mode. 'cluster.type' is ignored.
  Running in single core mode. 'cluster.type' is ignored.
  [ FAIL 1 | WARN 1 | SKIP 58 | PASS 499 ]
  
  ══ Skipped tests (58) ══════════════════════════════════════════════════════════
  • BuildScoreCache(method=mle) crashes with Poisson nodes (1):
    'test-fitabn_mle.R:138:3'
  • INLA is not tested on CRAN (2): 'test-build_score_cache.R:124:5',
    'test-search_hillclimber.R:79:7'
  • On CRAN (54): 'test-Coutput.R:1:1', 'test-abn-internal.R:138:3',
    'test-abn-methods.R:52:3', 'test-abn-methods.R:78:3',
    'test-abn-methods.R:99:3', 'test-abn-methods.R:125:3',
    'test-abn-methods.R:148:3', 'test-abn-methods.R:177:3',
    'test-abn-methods.R:200:3', 'test-abn-methods.R:223:3',
    'test-abn-methods.R:251:3', 'test-abn-methods.R:276:3',
    'test-abn-methods.R:301:3', 'test-abn-methods.R:326:3',
    'test-abn-methods.R:351:3', 'test-abn-methods.R:376:3',
    'test-abn-methods.R:401:3', 'test-abn-methods.R:426:3',
    'test-abn-methods.R:451:3', 'test-build_score_cache.R:129:3',
    'test-build_score_cache.R:188:3', 'test-build_score_cache.R:338:3',
    'test-build_score_cache.R:393:3', 'test-build_score_cache.R:441:3',
    'test-build_score_cache_bayes.R:2:3', 'test-build_score_cache_bayes.R:33:3',
    'test-build_score_cache_bayes.R:91:3',
    'test-build_score_cache_bayes.R:127:3', 'test-calc_node_inla_glm.R:2:3',
    'test-calc_node_inla_glmm.R:2:3', 'test-fitabn.R:26:3', 'test-fitabn.R:56:3',
    'test-fitabn.R:75:3', 'test-fitabn.R:94:3', 'test-fitabn.R:136:3',
    'test-fitabn.R:190:3', 'test-fitabn.R:379:3', 'test-fitabn_bayes.R:2:3',
    'test-fitabn_mle.R:575:11', 'test-fitabn_mle.R:691:11',
    'test-mostprobable.R:2:3', 'test-mostprobable.R:12:3',
    'test-mostprobable.R:79:3', 'test-mostprobable.R:169:3',
    'test-mostprobable.R:211:3', 'test-plot-abn.R:1:1', 'test-plot-abn.R:126:3',
    'test-search_heuristic.R:2:3', 'test-search_hillclimber.R:16:3',
    'test-search_hillclimber.R:84:3', 'test-simulateabn.R:508:3',
    'test-simulateabn.R:810:3', 'test-tographviz.R:1:1', 'test-tographviz.R:52:1'
  • Plot classic view is deprecated. (1): 'test-plot-abn.R:118:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-simulateabn.R:945:13'): simulateAbn() works with grouping in real data. ──
  Error in `{     forLoopContent(row.num = row.num, mycache = mycache, data.dists = data.dists, data.df.multi = data.df.multi, adj.vars = adj.vars, data.df = data.df, data.df.lvl = data.df.lvl, group.var = group.var, group.ids = group.ids, control = control, n = nvars, verbose = verbose) }`: task 503 failed - "object 'fit' not found"
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-simulateabn.R:914:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─base::suppressWarnings(...) at test-simulateabn.R:915:5
    4. │ └─base::withCallingHandlers(...)
    5. ├─utils::capture.output(...) at test-simulateabn.R:917:9
    6. │ └─base::withVisible(...elt(i))
    7. └─abn::buildScoreCache(...) at test-simulateabn.R:945:13
    8.   └─abn::buildScoreCache.mle(...)
    9.     └─... %do% ...
   10.       └─e$fun(obj, substitute(ex), parent.frame(), e$data)
  
  [ FAIL 1 | WARN 1 | SKIP 58 | PASS 499 ]
  Error:
  ! Test failures.
  Execution halted