Skip to content

Commit eea0ff3

Browse files
committed
ergm_LayerLogic() now checks that the input is a formula.
1 parent a07f969 commit eea0ff3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: ergm.multi
2-
Version: 0.3.0-4225
2+
Version: 0.3.0-4226
33
Date: 2025-10-08
44
Title: Fit, Simulate and Diagnose Exponential-Family Models for Multiple or Multilayer Networks
55
Authors@R: c(person(c("Pavel", "N."), "Krivitsky", role=c("aut","cre"), email="pavel@statnet.org", comment=c(ORCID="0000-0002-9101-3362")),

R/InitErgmTerm.multilayer.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ LL_TOGGLE <- c("t")
648648
#' @keywords internal
649649
#' @export
650650
ergm_LayerLogic <- function(formula, namemap=NULL){
651-
## TODO: Check whether we should verify that this is a formula.
651+
if (!is(formula, "formula")) ergm_Init_stop(sQuote(deparse(formula)), " is not a formula.")
652652
structure(formula, namemap=namemap, class=if(is(formula,"ergm_LayerLogic")) class(formula) else c("ergm_LayerLogic", class(formula)))
653653
}
654654

0 commit comments

Comments
 (0)