From 78c88bd8f94f896e1bacbde6fb8174f1583d14f2 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Wed, 29 May 2024 10:30:51 -0700 Subject: [PATCH] Update `component.adj.matrix()` example for #58 --- R/component.adj.matrix.R | 2 +- man/component.adj.matrix.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/component.adj.matrix.R b/R/component.adj.matrix.R index 43834d8..6580d64 100644 --- a/R/component.adj.matrix.R +++ b/R/component.adj.matrix.R @@ -25,7 +25,7 @@ #' @keywords manip #' #' @examples -#' if (requireNamespace("igraph")) { +#' if (requireNamespace("igraph") && requireNamespace("vegan")) { #' # load sample data set #' data(amador) #' diff --git a/man/component.adj.matrix.Rd b/man/component.adj.matrix.Rd index 55dc0c5..e3c8672 100644 --- a/man/component.adj.matrix.Rd +++ b/man/component.adj.matrix.Rd @@ -45,7 +45,7 @@ a similarity matrix / adjacency matrix suitable for use with \code{igraph} funct Create an adjacency matrix from SSURGO component data } \examples{ -if (requireNamespace("igraph")) { +if (requireNamespace("igraph") && requireNamespace("vegan")) { # load sample data set data(amador)