Skip to content

Commit

Permalink
using requireNamespace for best practice
Browse files Browse the repository at this point in the history
  • Loading branch information
benyamindsmith committed Nov 17, 2024
1 parent 35edb0b commit 5bcaeb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.onAttach <- function(libname, pkgname)
{
suppressPackageStartupMessages(requireNamespace("igraph", quietly = TRUE))
}

0 comments on commit 5bcaeb7

Please sign in to comment.