Running examples in ‘ergm-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: anova.ergm
> ### Title: ANOVA for ERGM Fits
> ### Aliases: anova.ergm anova.ergmlist
> ### Keywords: models regression
> 
> ### ** Examples
> 
> 
> data(molecule)
> molecule %v% "atomic type" <- c(1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3)
> fit0 <- ergm(molecule ~ edges)
Starting maximum pseudolikelihood estimation (MPLE):
Evaluating the predictor and response matrix.
Maximizing the pseudolikelihood.
Finished MPLE.
Stopping at the initial estimate.
Evaluating log-likelihood at the estimate. 
> anova(fit0)
Analysis of Deviance Table

Model 1: molecule ~ edges
         Df Deviance Resid. Df Resid. Dev Pr(>|Chisq|)    
NULL                       190     263.40                 
Model 1:  1   104.51       189     158.88    < 2.2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> fit1 <- ergm(molecule ~ edges + nodefactor("atomic type"))
Starting maximum pseudolikelihood estimation (MPLE):
Evaluating the predictor and response matrix.
Maximizing the pseudolikelihood.
Finished MPLE.
Stopping at the initial estimate.
Evaluating log-likelihood at the estimate. 
> anova(fit1)
Analysis of Deviance Table

Model 1: molecule ~ edges + nodefactor("atomic type")
         Df Deviance Resid. Df Resid. Dev Pr(>|Chisq|)    
NULL                       190     263.40                 
Model 1:  3   105.84       187     157.55    < 2.2e-16 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> 
> fit2 <- ergm(molecule ~ edges + nodefactor("atomic type") +  gwesp(0.5,
+   fixed=TRUE), eval.loglik=TRUE) # Note the eval.loglik argument.
Starting maximum pseudolikelihood estimation (MPLE):
Evaluating the predictor and response matrix.
Maximizing the pseudolikelihood.
Finished MPLE.
Starting Monte Carlo maximum likelihood estimation (MCMLE):
Iteration 1 of at most 60:
Optimizing with step length 1.0000.
The log-likelihood improved by 0.4537.
Estimating equations are not within tolerance region.
Iteration 2 of at most 60:
Optimizing with step length 1.0000.
The log-likelihood improved by 0.0387.
Convergence test p-value: 0.0012. Converged with 99% confidence.
Finished MCMLE.
Evaluating log-likelihood at the estimate. Fitting the dyad-independent submodel...
Bridging between the dyad-independent submodel and the full model...
Setting up bridge sampling...
Warning in packageDescription(pkg, lib.loc = lib.loc, fields = "Version") :
  no package 'tergm' was found
Error in if (has_new_tergm()) check_dots_used(error = unused_dots_warning) : 
  missing value where TRUE/FALSE needed
Calls: ergm ... simulate.formula_lhs_network -> simulate_formula -> simulate_formula.network
Execution halted