Skip to content

Commit 3e65886

Browse files
committed
Set constraints .attributes to NULL
1 parent 1d53f86 commit 3e65886

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ Imports:
2222
Suggests: testthat, EpiModel
2323
LinkingTo: Rcpp, ergm
2424
LazyData: true
25-
RoxygenNote: 6.1.0
25+
RoxygenNote: 6.1.1
2626
Encoding: UTF-8

R/initialize.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ stergm_prep <- function(nw,
4848
nw, weights = control$MCMC.prop.weights.diss,
4949
class = "d")
5050

51+
MHproposal.form$arguments$constraints$.attributes <- NULL
52+
MHproposal.diss$arguments$constraints$.attributes <- NULL
53+
5154
out <- list(model.form = model.form, model.diss = model.diss,
5255
MHproposal.form = MHproposal.form, MHproposal.diss = MHproposal.diss)
5356

@@ -80,6 +83,8 @@ ergm_prep <- function(nw,
8083
nw = nw, weights = control$MCMC.prop.weights, class = "c",
8184
reference = ~Bernoulli, response = NULL)
8285

86+
MHproposal$arguments$constraints$.attributes <- NULL
87+
8388
out <- list(model.form = m, MHproposal = MHproposal)
8489
return(out)
8590
}

0 commit comments

Comments
 (0)