Skip to content

Commit

Permalink
simulate.ergm() now explicitly takes a return.args= argument rather t…
Browse files Browse the repository at this point in the history
…han passing it through ... . This seems to fix some spurious warnings.
  • Loading branch information
krivit committed Jan 26, 2024
1 parent 3f3ebbf commit d9a33be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ License_is_FOSS: yes
License_restricts_use: no
URL: https://statnet.org
VignetteBuilder: knitr
RoxygenNote: 7.3.0
RoxygenNote: 7.3.1
Roxygen: list(markdown = TRUE)
Config/testthat/parallel: true
Config/testthat/edition: 3
Expand Down
4 changes: 2 additions & 2 deletions R/simulate.ergm.R
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ simulate.ergm <- function(object, nsim=1, seed=NULL,
simplify=TRUE,
sequential=TRUE,
control=control.simulate.ergm(),
verbose=FALSE, ...) {
verbose=FALSE, ..., return.args=NULL) {
check_dots_used(error = unused_dots_warning)
check.control.class(c("simulate.ergm","simulate.formula"), "simulate.ergm")
handle.control.toplevel("simulate.ergm", ...)
Expand Down Expand Up @@ -656,5 +656,5 @@ simulate.ergm <- function(object, nsim=1, seed=NULL,
monitor=monitor,
basis=basis,
output=output, simplify=simplify,
control=control, verbose=verbose, seed=seed, ...)
control=control, verbose=verbose, seed=seed, ..., return.args=return.args)
}
3 changes: 2 additions & 1 deletion man/simulate.ergm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9a33be

Please sign in to comment.