The check.ErgmTerm function ensures for the InitErgmTerm.X function that the term X:
ergm.checkargs function ensures for the InitErgm function that the term X:
The the ergm.checkdirected function halts execution for the
check.ErgmTerm(nw, arglist, directed = NULL, bipartite = NULL,
nonnegative = FALSE, varnames = NULL, vartypes = NULL,
defaultvalues = list(), required = NULL, response = NULL)
ergm.checkargs(fname, arglist, varnames=NULL, vartypes=NULL,
defaultvalues=list(), required=NULL)
ergm.checkdirected(fname, nw.directedflag, requirement,
extramessage="")