Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions R/hrg.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ fit_hrg <- function(graph, hrg = NULL, start = FALSE, steps = 0) {
#' }
#' }
#' @family hierarchical random graph functions
#' @examples
#' ## A graph with two dense groups
#' g <- sample_gnp(10, p = 1 / 2) + sample_gnp(10, p = 1 / 2)
#' hrg <- fit_hrg(g)
#' hrg
#'
#' ## The consensus tree for it
#' consensus_tree(g, hrg = hrg, start = TRUE)
Comment on lines +306 to +313
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

This new example will run during non-interactive R CMD check and calls consensus_tree() with the default num.samples = 10000, which can be slow. Other HRG examples in this file are guarded with @examplesIf rlang::is_interactive() (e.g., the fit_hrg() / predict_edges() docs); consider switching this block to @examplesIf rlang::is_interactive() (or reducing num.samples) to keep checks fast and reliable.

Copilot uses AI. Check for mistakes.
#' @export
#' @cdocs igraph_hrg_consensus
consensus_tree <- function(
Expand Down
9 changes: 9 additions & 0 deletions man/consensus_tree.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading