diff --git a/DESCRIPTION b/DESCRIPTION index 9d1138f2a..1bb752d94 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ergm -Version: 4.2-6930 -Date: 2022-05-26 +Version: 4.2-6932 +Date: 2022-05-27 Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks Authors@R: c( person("Mark S.", "Handcock", role=c("aut"), email="handcock@stat.ucla.edu"), diff --git a/R/ergm_model.R b/R/ergm_model.R index abbdda836..e8af81141 100644 --- a/R/ergm_model.R +++ b/R/ergm_model.R @@ -24,7 +24,7 @@ #' @param formula An [ergm()] #' formula of the form \code{network ~ model.term(s)} or \code{~ #' model.term(s)}. -#' @param nw The network of interest; if passed, the LHS of `formula` is ignored. This is the recommended usage. +#' @param nw The network of interest, optionally instrumented with [ergm_preprocess_response()] to have a response attribute specification; if passed, the LHS of `formula` is ignored. This is the recommended usage. #' @param silent logical, whether to print the warning messages from the #' initialization of each model term. #' @param \dots additional parameters for model formulation @@ -33,13 +33,14 @@ #' @param env a throwaway argument needed to prevent conflicts with some usages of `ergm_model`. The initialization environment is *always* taken from the `formula`. #' @param offset.decorate logical; whether offset coefficient and parameter names should be enclosed in `"offset()"`. #' @param object An `ergm_model` object. +#' @note Earlier versions also had an optional `response=` parameter that, if not `NULL`, switched to valued mode and used the edge attribute named in `response=` as the response. This is no longer used; instead, the response is to be set on `nw` via `ergm_preprocess_response(nw, response)`. #' @return `ergm_model` returns an `ergm_model` object as a list #' containing: #' \item{terms}{a list of terms and 'term components' initialized by the #' appropriate \code{InitErgmTerm.X} function.} #' \item{etamap}{the theta -> eta mapping as a list returned from #' } -#' @seealso [summary.ergm_model()] +#' @seealso [summary.ergm_model()], [ergm_preprocess_response()] #' @keywords internal #' @export ergm_model <- function(formula, nw=NULL, silent=FALSE, ..., term.options=list(), extra.aux=list(), env=globalenv(), offset.decorate=TRUE){ diff --git a/man/ergm_model.Rd b/man/ergm_model.Rd index 1a88aaaf9..5819d8706 100644 --- a/man/ergm_model.Rd +++ b/man/ergm_model.Rd @@ -45,7 +45,7 @@ as.ergm_model(x, ...) formula of the form \code{network ~ model.term(s)} or \code{~ model.term(s)}.} -\item{nw}{The network of interest; if passed, the LHS of \code{formula} is ignored. This is the recommended usage.} +\item{nw}{The network of interest, optionally instrumented with \code{\link[=ergm_preprocess_response]{ergm_preprocess_response()}} to have a response attribute specification; if passed, the LHS of \code{formula} is ignored. This is the recommended usage.} \item{silent}{logical, whether to print the warning messages from the initialization of each model term.} @@ -103,8 +103,10 @@ initialized via the \code{InitErgmTerm} functions to create a \note{ This API is not to be considered fixed and may change between versions. However, an effort will be made to ensure that the methods of this class remain stable. + +Earlier versions also had an optional \verb{response=} parameter that, if not \code{NULL}, switched to valued mode and used the edge attribute named in \verb{response=} as the response. This is no longer used; instead, the response is to be set on \code{nw} via \code{ergm_preprocess_response(nw, response)}. } \seealso{ -\code{\link[=summary.ergm_model]{summary.ergm_model()}} +\code{\link[=summary.ergm_model]{summary.ergm_model()}}, \code{\link[=ergm_preprocess_response]{ergm_preprocess_response()}} } \keyword{internal} diff --git a/tests/testthat/test-C-curved.R b/tests/testthat/test-C-curved.R index dbaa37dfa..c651ad6b9 100644 --- a/tests/testthat/test-C-curved.R +++ b/tests/testthat/test-C-curved.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-C-curved.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-Sum.R b/tests/testthat/test-Sum.R index fa799c2de..33f44a0c5 100644 --- a/tests/testthat/test-Sum.R +++ b/tests/testthat/test-Sum.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-Sum.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-bd.R b/tests/testthat/test-bd.R index 75316aed6..59c791a59 100644 --- a/tests/testthat/test-bd.R +++ b/tests/testthat/test-bd.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-bd.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-bipartite-missing-data.R b/tests/testthat/test-bipartite-missing-data.R index 63133b838..a9579234e 100644 --- a/tests/testthat/test-bipartite-missing-data.R +++ b/tests/testthat/test-bipartite-missing-data.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-bipartite-missing-data.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-bridge-target.stats.R b/tests/testthat/test-bridge-target.stats.R index 37f0f7e10..5ce989e36 100644 --- a/tests/testthat/test-bridge-target.stats.R +++ b/tests/testthat/test-bridge-target.stats.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-bridge-target.stats.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-c-ergm_model.R b/tests/testthat/test-c-ergm_model.R index 8ebbed17a..91f98a052 100644 --- a/tests/testthat/test-c-ergm_model.R +++ b/tests/testthat/test-c-ergm_model.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-c-ergm_model.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-checkpointing.R b/tests/testthat/test-checkpointing.R index e045f2392..0b32d595a 100644 --- a/tests/testthat/test-checkpointing.R +++ b/tests/testthat/test-checkpointing.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-checkpointing.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-constrain-blockdiag.R b/tests/testthat/test-constrain-blockdiag.R index 3034330b1..b3c2e9c71 100644 --- a/tests/testthat/test-constrain-blockdiag.R +++ b/tests/testthat/test-constrain-blockdiag.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-constrain-blockdiag.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-constrain-degrees-edges.R b/tests/testthat/test-constrain-degrees-edges.R index 82fb6f14c..b584cd592 100644 --- a/tests/testthat/test-constrain-degrees-edges.R +++ b/tests/testthat/test-constrain-degrees-edges.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-constrain-degrees-edges.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-constrain-dind.R b/tests/testthat/test-constrain-dind.R index 927b0562c..a1638abd2 100644 --- a/tests/testthat/test-constrain-dind.R +++ b/tests/testthat/test-constrain-dind.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-constrain-dind.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-constrain-egocentric.R b/tests/testthat/test-constrain-egocentric.R index d4760ba76..77b271fd9 100644 --- a/tests/testthat/test-constrain-egocentric.R +++ b/tests/testthat/test-constrain-egocentric.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-constrain-egocentric.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-constraints.R b/tests/testthat/test-constraints.R index fea6fb5f0..f72f6cd5d 100644 --- a/tests/testthat/test-constraints.R +++ b/tests/testthat/test-constraints.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-constraints.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-drop.R b/tests/testthat/test-drop.R index 06f42259b..397b2e4fe 100644 --- a/tests/testthat/test-drop.R +++ b/tests/testthat/test-drop.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-drop.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-ergm-godfather.R b/tests/testthat/test-ergm-godfather.R index 9d604f8d4..2c6e994cf 100644 --- a/tests/testthat/test-ergm-godfather.R +++ b/tests/testthat/test-ergm-godfather.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-ergm-godfather.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-ergm-san.R b/tests/testthat/test-ergm-san.R index 90528dc8f..2582ce973 100644 --- a/tests/testthat/test-ergm-san.R +++ b/tests/testthat/test-ergm-san.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-ergm-san.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-ergm-term-doc.R b/tests/testthat/test-ergm-term-doc.R index 34ec6b398..bae2ab273 100644 --- a/tests/testthat/test-ergm-term-doc.R +++ b/tests/testthat/test-ergm-term-doc.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-ergm-term-doc.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-ergm.bridge.llr.R b/tests/testthat/test-ergm.bridge.llr.R index 434d2fcec..13efcd33b 100644 --- a/tests/testthat/test-ergm.bridge.llr.R +++ b/tests/testthat/test-ergm.bridge.llr.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-ergm.bridge.llr.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-ergmMPLE.R b/tests/testthat/test-ergmMPLE.R index c38861c7a..c04fb9962 100644 --- a/tests/testthat/test-ergmMPLE.R +++ b/tests/testthat/test-ergmMPLE.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-ergmMPLE.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-fix.curved.R b/tests/testthat/test-fix.curved.R index 89355b1e2..fe54444c7 100644 --- a/tests/testthat/test-fix.curved.R +++ b/tests/testthat/test-fix.curved.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-fix.curved.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-gflomiss.R b/tests/testthat/test-gflomiss.R index 57d4a07fe..09dcba00c 100644 --- a/tests/testthat/test-gflomiss.R +++ b/tests/testthat/test-gflomiss.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-gflomiss.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-gmonkmiss.R b/tests/testthat/test-gmonkmiss.R index 25cb78dc7..7972b5d41 100644 --- a/tests/testthat/test-gmonkmiss.R +++ b/tests/testthat/test-gmonkmiss.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-gmonkmiss.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-gof.R b/tests/testthat/test-gof.R index 7c1e61075..1ae41577d 100644 --- a/tests/testthat/test-gof.R +++ b/tests/testthat/test-gof.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-gof.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-gw-sp.R b/tests/testthat/test-gw-sp.R index 8f33b3988..1341c8451 100644 --- a/tests/testthat/test-gw-sp.R +++ b/tests/testthat/test-gw-sp.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-gw-sp.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-metrics.R b/tests/testthat/test-metrics.R index e3c7094e6..6fa4df595 100644 --- a/tests/testthat/test-metrics.R +++ b/tests/testthat/test-metrics.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-metrics.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-miss.CD.R b/tests/testthat/test-miss.CD.R index 7d14e5f25..be15491b7 100644 --- a/tests/testthat/test-miss.CD.R +++ b/tests/testthat/test-miss.CD.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-miss.CD.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-miss.R b/tests/testthat/test-miss.R index be56edffe..a0095d6b4 100644 --- a/tests/testthat/test-miss.R +++ b/tests/testthat/test-miss.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-miss.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-mple-largenetwork.R b/tests/testthat/test-mple-largenetwork.R index 8d59be33f..5134c4e09 100644 --- a/tests/testthat/test-mple-largenetwork.R +++ b/tests/testthat/test-mple-largenetwork.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-mple-largenetwork.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-mple-offset.R b/tests/testthat/test-mple-offset.R index c2654ba73..95e483b06 100644 --- a/tests/testthat/test-mple-offset.R +++ b/tests/testthat/test-mple-offset.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-mple-offset.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-mple-target.R b/tests/testthat/test-mple-target.R index 17ea29680..6eee03d7a 100644 --- a/tests/testthat/test-mple-target.R +++ b/tests/testthat/test-mple-target.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-mple-target.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-nodemix.R b/tests/testthat/test-nodemix.R index dd4df4c49..45dbeb931 100644 --- a/tests/testthat/test-nodemix.R +++ b/tests/testthat/test-nodemix.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-nodemix.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-nodrop.R b/tests/testthat/test-nodrop.R index 65edd8e3d..2c5fa3aa2 100644 --- a/tests/testthat/test-nodrop.R +++ b/tests/testthat/test-nodrop.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-nodrop.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-nonident-test.R b/tests/testthat/test-nonident-test.R index 1356f2925..7e488355e 100644 --- a/tests/testthat/test-nonident-test.R +++ b/tests/testthat/test-nonident-test.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-nonident-test.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-nonunique-names.R b/tests/testthat/test-nonunique-names.R index ec0d389c7..4ea3f6776 100644 --- a/tests/testthat/test-nonunique-names.R +++ b/tests/testthat/test-nonunique-names.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-nonunique-names.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-offsets.R b/tests/testthat/test-offsets.R index d61787d8c..9a69086de 100644 --- a/tests/testthat/test-offsets.R +++ b/tests/testthat/test-offsets.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-offsets.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-operators.R b/tests/testthat/test-operators.R index fa01be16c..81784c298 100644 --- a/tests/testthat/test-operators.R +++ b/tests/testthat/test-operators.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-operators.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-parallel.R b/tests/testthat/test-parallel.R index 1269c11d6..d884974aa 100644 --- a/tests/testthat/test-parallel.R +++ b/tests/testthat/test-parallel.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-parallel.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-predict.ergm.R b/tests/testthat/test-predict.ergm.R index 072a9bdc4..db58ade3f 100644 --- a/tests/testthat/test-predict.ergm.R +++ b/tests/testthat/test-predict.ergm.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-predict.ergm.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-proposal-bdstrattnt.R b/tests/testthat/test-proposal-bdstrattnt.R index 8271a053c..3aa980fcf 100644 --- a/tests/testthat/test-proposal-bdstrattnt.R +++ b/tests/testthat/test-proposal-bdstrattnt.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-proposal-bdstrattnt.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-runtime-diags.R b/tests/testthat/test-runtime-diags.R index 0672081fb..c00c00783 100644 --- a/tests/testthat/test-runtime-diags.R +++ b/tests/testthat/test-runtime-diags.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-runtime-diags.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-scoping.R b/tests/testthat/test-scoping.R index 8e97d13f8..aae3c88d0 100644 --- a/tests/testthat/test-scoping.R +++ b/tests/testthat/test-scoping.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-scoping.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-shrink-into-CH.R b/tests/testthat/test-shrink-into-CH.R index 8e268c506..14d8135c9 100644 --- a/tests/testthat/test-shrink-into-CH.R +++ b/tests/testthat/test-shrink-into-CH.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-shrink-into-CH.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-simple.R b/tests/testthat/test-simple.R index 5495e173f..af056e747 100644 --- a/tests/testthat/test-simple.R +++ b/tests/testthat/test-simple.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-simple.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-simulate-batch.R b/tests/testthat/test-simulate-batch.R index 0c61924a4..90c951473 100644 --- a/tests/testthat/test-simulate-batch.R +++ b/tests/testthat/test-simulate-batch.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-simulate-batch.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-snctrl.R b/tests/testthat/test-snctrl.R index 7ef0e06db..4d3e772ac 100644 --- a/tests/testthat/test-snctrl.R +++ b/tests/testthat/test-snctrl.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-snctrl.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-stocapprox.R b/tests/testthat/test-stocapprox.R index 646e09220..face9190c 100644 --- a/tests/testthat/test-stocapprox.R +++ b/tests/testthat/test-stocapprox.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-stocapprox.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-target-offset.R b/tests/testthat/test-target-offset.R index c23b3ec41..b1b19e61f 100644 --- a/tests/testthat/test-target-offset.R +++ b/tests/testthat/test-target-offset.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-target-offset.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-Offset.R b/tests/testthat/test-term-Offset.R index 780322d10..3d7a0ef2b 100644 --- a/tests/testthat/test-term-Offset.R +++ b/tests/testthat/test-term-Offset.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-Offset.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-attrcov.R b/tests/testthat/test-term-attrcov.R index 3cc1b1912..63547cceb 100644 --- a/tests/testthat/test-term-attrcov.R +++ b/tests/testthat/test-term-attrcov.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-attrcov.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-b12factor.R b/tests/testthat/test-term-b12factor.R index bb80386d7..895916de6 100644 --- a/tests/testthat/test-term-b12factor.R +++ b/tests/testthat/test-term-b12factor.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-b12factor.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-b12nodematch.R b/tests/testthat/test-term-b12nodematch.R index 6bff2a6df..422a0ff21 100644 --- a/tests/testthat/test-term-b12nodematch.R +++ b/tests/testthat/test-term-b12nodematch.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-b12nodematch.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-bipartite.R b/tests/testthat/test-term-bipartite.R index 7b638be95..54f1a83c2 100644 --- a/tests/testthat/test-term-bipartite.R +++ b/tests/testthat/test-term-bipartite.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-bipartite.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-directed.R b/tests/testthat/test-term-directed.R index 7484a3266..4736e3b04 100644 --- a/tests/testthat/test-term-directed.R +++ b/tests/testthat/test-term-directed.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-directed.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-edgecov.R b/tests/testthat/test-term-edgecov.R index 363ec89ac..852bfe99d 100644 --- a/tests/testthat/test-term-edgecov.R +++ b/tests/testthat/test-term-edgecov.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-edgecov.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-errors.R b/tests/testthat/test-term-errors.R index 390920de2..65bed859c 100644 --- a/tests/testthat/test-term-errors.R +++ b/tests/testthat/test-term-errors.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-errors.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-flexible.R b/tests/testthat/test-term-flexible.R index a2a73de8c..5a6adf63c 100644 --- a/tests/testthat/test-term-flexible.R +++ b/tests/testthat/test-term-flexible.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-flexible.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-hamming.R b/tests/testthat/test-term-hamming.R index 959e9a38f..a65b7cc59 100644 --- a/tests/testthat/test-term-hamming.R +++ b/tests/testthat/test-term-hamming.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-hamming.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-mm.R b/tests/testthat/test-term-mm.R index 4397b25dc..0232e78fc 100644 --- a/tests/testthat/test-term-mm.R +++ b/tests/testthat/test-term-mm.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-mm.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-options.R b/tests/testthat/test-term-options.R index 5bf304d8c..bd976ddba 100644 --- a/tests/testthat/test-term-options.R +++ b/tests/testthat/test-term-options.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-options.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-undirected.R b/tests/testthat/test-term-undirected.R index ac4f4e9c3..4eea79e3e 100644 --- a/tests/testthat/test-term-undirected.R +++ b/tests/testthat/test-term-undirected.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-undirected.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-term-valued.R b/tests/testthat/test-term-valued.R index e7f536bef..ef9ca8a36 100644 --- a/tests/testthat/test-term-valued.R +++ b/tests/testthat/test-term-valued.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-term-valued.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-u-function.R b/tests/testthat/test-u-function.R index 01a17db52..ebab41541 100644 --- a/tests/testthat/test-u-function.R +++ b/tests/testthat/test-u-function.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-u-function.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-update.network.R b/tests/testthat/test-update.network.R index 872835fca..2ae14013b 100644 --- a/tests/testthat/test-update.network.R +++ b/tests/testthat/test-update.network.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-update.network.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-valued-sim.R b/tests/testthat/test-valued-sim.R index d0b8e1884..4d917d9eb 100644 --- a/tests/testthat/test-valued-sim.R +++ b/tests/testthat/test-valued-sim.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-valued-sim.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-valued-terms.R b/tests/testthat/test-valued-terms.R index da6d19b86..fe2027f0d 100644 --- a/tests/testthat/test-valued-terms.R +++ b/tests/testthat/test-valued-terms.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-valued-terms.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . # diff --git a/tests/testthat/test-weighted-population.R b/tests/testthat/test-weighted-population.R index 1908485ec..3cf6b9693 100644 --- a/tests/testthat/test-weighted-population.R +++ b/tests/testthat/test-weighted-population.R @@ -1,3 +1,4 @@ +library(testthat); library(ergm) # File tests/testthat/test-weighted-population.R in package ergm, part of the # Statnet suite of packages for network analysis, https://statnet.org . #