Skip to content

Commit

Permalink
Update documentation of dots in stan_sampling_opts() (#699)
Browse files Browse the repository at this point in the history
* Dots are only passed to rstan sampling here

* Fix function hyperlink

* Update dots docs to include cmdstanr sample function

* Add NEWS

* Add reviewer and PR number
  • Loading branch information
jamesmbaazam authored Jul 2, 2024
1 parent 0c23177 commit 35409a6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

- `epinow()` now returns the "timing" output in a "time difference"" format that is easier to understand and work with. By @jamesmbaazam in #688 and reviewed by @sbfnk.

## Documentation

- Updated the documentation of the dots argument of the `stan_sampling_opts()` to add that the dots are passed to `cmdstanr::sample()`. By @jamesmbaazam in #699 and reviewed by @sbfnk.

# EpiNow2 1.5.2

A patch release to further fix an issue with the date in the package citation. This has now been addressed by removing `inst/CITATION`.
Expand Down
1 change: 1 addition & 0 deletions R/deprecated.R
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ get_incubation_period <- function(disease, source, max_value = 14,
#'
#' @description `r lifecycle::badge("deprecated")`
#' Deprecated; use [stan_sampling_opts()] instead.
#' @param ... Additional parameters to pass to [rstan::sampling()].
#' @inheritParams stan_sampling_opts
#' @return A list of arguments to pass to [rstan::sampling()].
#' @export
Expand Down
5 changes: 3 additions & 2 deletions R/opts.R
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,11 @@ obs_opts <- function(family = c("negbin", "poisson"),
#'
#' @inheritParams stan_opts
#'
#' @param ... Additional parameters to pass to [rstan::sampling()].
#' @param ... Additional parameters to pass to [rstan::sampling()] or
#' [cmdstanr::sample()].
#' @importFrom utils modifyList
#' @return A list of arguments to pass to [rstan::sampling()] or
#' [cmdstanr::sample().
#' [cmdstanr::sample()].
#' @export
#' @examples
#' stan_sampling_opts(samples = 2000)
Expand Down
5 changes: 3 additions & 2 deletions man/stan_sampling_opts.Rd

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

0 comments on commit 35409a6

Please sign in to comment.