Skip to content

export abn output to other format(s)#227

Merged
matteodelucchi merged 54 commits intomainfrom
226-export-abn-to-json-abn-for-bnviz-compatibility
Nov 18, 2025
Merged

export abn output to other format(s)#227
matteodelucchi merged 54 commits intomainfrom
226-export-abn-to-json-abn-for-bnviz-compatibility

Conversation

@matteodelucchi
Copy link
Copy Markdown
Contributor

@matteodelucchi matteodelucchi commented Sep 10, 2025

Closing #226
Addressing #63

Implementation roadmap for export function of abnFit objects

  • method = "mle" without group.var
  • method = "mle" with group.var
  • method = "bayes"

@matteodelucchi matteodelucchi self-assigned this Sep 10, 2025
@matteodelucchi matteodelucchi added the enhancement New feature or request label Sep 10, 2025
@matteodelucchi matteodelucchi linked an issue Sep 10, 2025 that may be closed by this pull request
abn_fit <- create_test_abnfit_mle()
test_that("export_abnFit works for MLE method without group.var", {
suppressMessages({
suppressWarnings({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation of export_abnFit() generates a warning because some arc arguments (frequency, significance, constraints) are not yet implemented. This is expected behavior; therefore, the tests currently suppress warnings.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 10, 2025

Codecov Report

❌ Patch coverage is 86.62420% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.03%. Comparing base (d7b018c) to head (b3deb48).
⚠️ Report is 52 commits behind head on main.

Files with missing lines Patch % Lines
R/export.R 86.98% 19 Missing ⚠️
R/abn-methods.R 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
+ Coverage   66.30%   67.03%   +0.72%     
==========================================
  Files          53       50       -3     
  Lines       10399    10535     +136     
==========================================
+ Hits         6895     7062     +167     
+ Misses       3504     3473      -31     
Files with missing lines Coverage Δ
R/abn-methods.R 69.28% <81.81%> (+0.97%) ⬆️
R/export.R 86.98% <86.98%> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…mixed_effects` to adhere to new structure.
@matteodelucchi matteodelucchi marked this pull request as ready for review November 18, 2025 10:55
@matteodelucchi
Copy link
Copy Markdown
Contributor Author

Let me bypass the CRAN checks. The containers are still not working as they fail to install the devtools library...

@matteodelucchi
Copy link
Copy Markdown
Contributor Author

This implements only the export of abnFit object generated with method = "mle"! The Bayesian case (method = "bayes") is not implemented yet and will return a placeholder skeleton.

@matteodelucchi matteodelucchi merged commit 286bea8 into main Nov 18, 2025
3 checks passed
@j-i-l j-i-l mentioned this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CRAN::failed enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

export abn to "JSON abn" for BNviz compatibility

1 participant