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)