Skip to content

Bioconductor pre-review#10

Merged
ncborcherding merged 3 commits into
mainfrom
bioconductor-prereview
Jun 9, 2026
Merged

Bioconductor pre-review#10
ncborcherding merged 3 commits into
mainfrom
bioconductor-prereview

Conversation

@ncborcherding

@ncborcherding ncborcherding commented Jun 9, 2026

Copy link
Copy Markdown
Member

1. Windows linker failure (Build R-release/devel/oldrel for Windows)

BLAS/LAPACK symbols (dgemm_, ddot_, etc.) were undefined because src/Makevars and src/Makevars.win never set PKG_LIBS.

Fix: added PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) to both.

2. R-devel/Linux arm64 test failure (Error in [.default(tb, cl, cl): subscript out of bounds)

In swarmbHIVE.R, the classification metrics built table(actual_labels, predicted_labels), whose columns only contain classes the model actually predicted. Indexing tb[cl, cl] over the actual class names blew up whenever the model never predicted some class — an RNG-dependent condition, which is why only R-devel arm64 tripped it while R-release passed.

Fix: build the confusion matrix over the union of actual and predicted labels via shared factor levels, so it's always square. Never-predicted classes now correctly score F1 = 0 instead of erroring. Same fix hardens balanced_accuracy and kappa, where the non-square table also silently misaligned diag().

Per run at: Bioconductor/BiocContributions#41

fixing makevars build issue on windows
Error in [.default(tb, cl, cl): subscript out of bounds

Fix is build the confusion matrix over the union of actual and predicted labels via shared factor levels
@ncborcherding ncborcherding merged commit db22317 into main Jun 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant