Skip to content

Commit

Permalink
Add check for the right variant of ergm to be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
handcock committed Jul 23, 2024
1 parent 9c42ef4 commit cb8e13f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
library.dynam.unload("ergm.tapered",libpath)
}


.onLoad <- function(libname, pkgname){
utils::globalVariables(names=c(".","NO_LOGLIK_MESSAGE","NO_NULL_IMPLICATION"))
.RegisterKeywords()
if(packageVersion("ergm") != "4.3.6983"){
stop("ergm.tapered requires a variant of the current version of 'ergm' (the 'tapered' branch).\n To install it use:\n devtools::install_github('statnet/ergm', ref='tapered')")
}
}


Expand Down

0 comments on commit cb8e13f

Please sign in to comment.