Repository navigation
Fix stale overlapping_sbm() docs about nodes in no block - #77
Draft
alexpghayes wants to merge 1 commit into
Draft
alexpghayes wants to merge 1 commit into
alexpghayes wants to merge 1 commit into
Conversation
Since every node was put in at least one block, the description and the `Z` return value docs were wrong to say nodes can belong to zero blocks and rows of `Z` can contain no ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Since
overlapping_sbm()started putting every node in at least one block, two places in its docs have been out of date:R/undirected_overlapping_sbm.R:63);Zreturn value said rows "can contain any number of ones, including none".Fix
Zdoc now says every row has at least one one, and how nodes that join no block in the Bernoulli draws are reassigned, matching thepidoc and the details.Tests
Added to
tests/testthat/test-undirected-overlapping-sbms.R:man/overlapping_sbm.Rdno longer contains either phrase (skipped whenman/isn't available, e.g. in installed tests), and every row ofZhas at least one block. Fails againstmain's docs (2 failures), passes here. Full suite passes. Docs regenerated with roxygen2 7.3.2.A test on documentation text is unusual. Drop it if you'd rather not keep it.
NEWS
Left out to avoid conflicting with #59. Probably not needed, since #59's existing
overlapping_sbm()entries already describe the behavior.🤖 Generated with Claude Code