Skip to content

Commit

Permalink
Fixed errors when plotting some examples without ggdendro
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollway committed Oct 5, 2024
1 parent 3ef6a6a commit 899f90b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/member_community.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ NULL
#' \doi{10.1103/PhysRevE.69.026113}
#' @examples
#' node_in_betweenness(ison_adolescents)
#' if(require("ggdendro", quietly = TRUE)){
#' plot(node_in_betweenness(ison_adolescents))
#' }
#' @export
node_in_betweenness <- function(.data){
if(missing(.data)) {expect_nodes(); .data <- .G()}
Expand Down
6 changes: 6 additions & 0 deletions R/member_equivalence.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ node_in_equivalence <- function(.data, census,
#' @examples
#' \donttest{
#' (nse <- node_in_structural(ison_algebra))
#' if(require("ggdendro", quietly = TRUE)){
#' plot(nse)
#' }
#' }
#' @export
node_in_structural <- function(.data,
k = c("silhouette", "elbow", "strict"),
Expand All @@ -100,8 +102,10 @@ node_in_structural <- function(.data,
#' \donttest{
#' (nre <- node_in_regular(ison_southern_women,
#' cluster = "concor"))
#' if(require("ggdendro", quietly = TRUE)){
#' plot(nre)
#' }
#' }
#' @export
node_in_regular <- function(.data,
k = c("silhouette", "elbow", "strict"),
Expand All @@ -126,6 +130,8 @@ node_in_regular <- function(.data,
#' if(require("sna", quietly = TRUE)){
#' (nae <- node_in_automorphic(ison_southern_women,
#' k = "elbow"))
#' }
#' if(require("ggdendro", quietly = TRUE)){
#' plot(nae)
#' }
#' }
Expand Down
2 changes: 2 additions & 0 deletions man/member_community_hier.Rd

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

6 changes: 6 additions & 0 deletions man/member_equivalence.Rd

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

0 comments on commit 899f90b

Please sign in to comment.