Conversation
There was a problem hiding this comment.
Pull request overview
This PR prepares the v0.2.1 release by expanding packaged learnr tutorials and refreshing documentation content/links, with a small re-organization of community-membership documentation.
Changes:
- Added new learnr tutorials for centrality, community/cohesion, position/equivalence, and topology/resilience under
inst/tutorials/. - Updated many
.Rddocs to point to newermanynetdocumentation topics for coercion and direction-modification references. - Adjusted/expanded community-detection documentation sections (e.g., Partition/Infomap text, moving the (commented) Ensemble block).
Reviewed changes
Copilot reviewed 67 out of 71 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| R/member_community.R | Moves/extends community-membership documentation sections (incl. commented ensemble block). |
| man/motif_periods.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_path.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_net.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_hierarchy.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_hazard.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_exposure.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_brokerage_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/motif_brokerage_net.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/method_kselect.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/method_cluster.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_equivalence.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_diffusion.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_core.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_components.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_community.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_community_non.Rd | Adds/adjusts Partition section text + updates link targets/wrapping. |
| man/member_community_hier.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_cliques.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/member_brokerage.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_periods.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_hierarchy.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_fragmentation.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_features.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_diverse_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_diverse_net.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_diffusion_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_core.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_cohesion.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_closure.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_closure_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_centralities_eigen.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralities_degree.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralities_close.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralities_between.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralisation_eigen.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralisation_degree.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralisation_close.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_centralisation_between.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_central_eigen.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_central_degree.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_central_close.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_central_between.Rd | Updates manynet::as_tidygraph() + direction-modification link target topic. |
| man/measure_brokerage.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_broker_tie.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_broker_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_breadth.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_assort_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/measure_assort_net.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_triangles.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_ties.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_select_tie.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_select_node.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_nodes.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_dyads.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_diff.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_degree.Rd | Updates manynet::as_tidygraph() link target topic. |
| man/mark_core.Rd | Updates manynet::as_tidygraph() link target topic. |
| inst/tutorials/tutorial6/topology.Rmd | Adds Topology/Resilience learnr tutorial content. |
| inst/tutorials/tutorial5/position.Rmd | Adds Position/Equivalence learnr tutorial content. |
| inst/tutorials/tutorial5/position_data/data_chunks_index.txt | Adds learnr prerender index (currently points to missing artifact). |
| inst/tutorials/tutorial4/community.Rmd | Adds Cohesion/Community learnr tutorial content. |
| inst/tutorials/tutorial3/centrality.Rmd | Adds Centrality learnr tutorial content. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # if(missing(.data)) {expect_nodes(); .data <- .G()} | ||
| # clust <- igraph::cluster_walktrap(manynet::as_igraph(.data)) | ||
| # out <- clust$membership | ||
| # make_node_member(out, .data) |
There was a problem hiding this comment.
The commented-out node_in_ensemble block contains a redundant make_node_member(out, .data) call that discards its return value and is immediately repeated with assignment. This looks like leftover/debug code; consider removing the unused call (or the entire commented-out block) to avoid confusion about intended behavior.
| # make_node_member(out, .data) |
| @@ -0,0 +1 @@ | |||
| data.RData | |||
There was a problem hiding this comment.
data_chunks_index.txt lists data.RData, but that file is not present in inst/tutorials/tutorial5/position_data/. This will break learnr::tutorial prerender/runtime expectations; either add the missing data.RData artifact (if intended) or remove/regenerate the *_data folder and index.
| data.RData |
| praise = c("C'est génial!", | ||
| "Beau travail!", | ||
| "Bravo!", | ||
| "Super!"), | ||
| encouragement = c("Bon effort")) |
There was a problem hiding this comment.
learnr::random_phrases_add(language = "en", ...) currently registers French phrases (e.g., "C'est génial!") under the English language key. This will cause English UI feedback to be in French; either change these phrases to English or set language = "fr"/adjust language keys as intended.
| praise = c("C'est génial!", | |
| "Beau travail!", | |
| "Bravo!", | |
| "Super!"), | |
| encouragement = c("Bon effort")) | |
| praise = c("That's great!", | |
| "Great job!", | |
| "Bravo!", | |
| "Awesome!"), | |
| encouragement = c("Good effort")) |
| ## Overview | ||
|
|
||
| <img src="https://64.media.tumblr.com/tumblr_lvpgquhGbq1r54h4xo1_400.gif"/> | ||
|
|
||
| In this tutorial, we'll explore: | ||
|
|
||
| - how to create or generate different network topologies | ||
| - the core-periphery structure of a network | ||
| - features of a network related to its resilience | ||
|
|
||
| This tutorial covers a range of different network topologies: | ||
| trees, lattices, random, small-world, scale-free, and core-periphery | ||
| networks. | ||
| These ideal networks exaggerate centrality, clustering, and randomness features, | ||
| and are thus great for theory-building and investigating the relationship between rules and structure. | ||
|
|
||
| <img src="https://media.tenor.com/images/e26e64a8cce94a6ee491f0ddeecc8b88/tenor.gif"/> |
There was a problem hiding this comment.
The images in this tutorial are embedded without alt text. For accessibility (screen readers) and to meet common documentation standards, add a short descriptive alt attribute (or mark as decorative with empty alt) for these images.
| praise = c("C'est génial!", | ||
| "Beau travail!", | ||
| "Bravo!", | ||
| "Super!"), | ||
| encouragement = c("Bon effort")) |
There was a problem hiding this comment.
learnr::random_phrases_add(language = "en", ...) currently registers French phrases (e.g., "C'est génial!") under the English language key. This will cause English UI feedback to be in French; either change these phrases to English or set language = "fr"/adjust language keys as intended.
| praise = c("C'est génial!", | |
| "Beau travail!", | |
| "Bravo!", | |
| "Super!"), | |
| encouragement = c("Bon effort")) | |
| praise = c("That's great!", | |
| "Great job!", | |
| "Bravo!", | |
| "Awesome!"), | |
| encouragement = c("Good effort")) |
| praise = c("C'est génial!", | ||
| "Beau travail!", | ||
| "Bravo!", | ||
| "Super!"), | ||
| encouragement = c("Bon effort")) |
There was a problem hiding this comment.
learnr::random_phrases_add(language = "en", ...) currently registers French phrases (e.g., "C'est génial!") under the English language key. This will cause English UI feedback to be in French; either change these phrases to English or set language = "fr"/adjust language keys as intended.
| praise = c("C'est génial!", | |
| "Beau travail!", | |
| "Bravo!", | |
| "Super!"), | |
| encouragement = c("Bon effort")) | |
| praise = c("That's great!", | |
| "Great job!", | |
| "Bravo!", | |
| "Awesome!"), | |
| encouragement = c("Good effort!")) |
| praise = c("C'est génial!", | ||
| "Beau travail!", | ||
| "Bravo!", | ||
| "Super!"), | ||
| encouragement = c("Bon effort")) |
There was a problem hiding this comment.
learnr::random_phrases_add(language = "en", ...) currently registers French phrases (e.g., "C'est génial!") under the English language key. This will cause English UI feedback to be in French; either change these phrases to English or set language = "fr"/adjust language keys as intended.
| praise = c("C'est génial!", | |
| "Beau travail!", | |
| "Bravo!", | |
| "Super!"), | |
| encouragement = c("Bon effort")) | |
| praise = c("That's great!", | |
| "Good job!", | |
| "Well done!", | |
| "Awesome!"), | |
| encouragement = c("Good effort")) |
| degree, betweenness, closeness, eigenvector, and other types of centrality, | ||
| explore their distributions and calculate the corresponding centralisation. | ||
|
|
||
| <img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExbG5oYmVtYmcxMWs1d3MzOGh3Zng5dTZhc241ZHR2NTE0YThiZWp4NiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/970Sr8vpwEbXG/giphy.gif" height="480px"/> |
There was a problem hiding this comment.
Several <img> tags in this tutorial omit alt text (e.g., the first hero image here). This reduces accessibility for screen-reader users; please add descriptive alt attributes (or empty alt for purely decorative images) consistently throughout the tutorial.
| <img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExbG5oYmVtYmcxMWs1d3MzOGh3Zng5dTZhc241ZHR2NTE0YThiZWp4NiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/970Sr8vpwEbXG/giphy.gif" height="480px"/> | |
| <img src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExbG5oYmVtYmcxMWs1d3MzOGh3Zng5dTZhc241ZHR2NTE0YThiZWp4NiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/970Sr8vpwEbXG/giphy.gif" height="480px" alt=""/> |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
==========================================
+ Coverage 81.07% 81.95% +0.87%
==========================================
Files 24 24
Lines 2394 2394
==========================================
+ Hits 1941 1962 +21
+ Misses 453 432 -21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Package
{manynet}Members
node_in_partition()Checklist: