Skip to content

Commit 35409a6

Browse files
authored
Update documentation of dots in stan_sampling_opts() (#699)
* 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
1 parent 0c23177 commit 35409a6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- `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.
66

7+
## Documentation
8+
9+
- 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.
10+
711
# EpiNow2 1.5.2
812

913
A patch release to further fix an issue with the date in the package citation. This has now been addressed by removing `inst/CITATION`.

R/deprecated.R

+1
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ get_incubation_period <- function(disease, source, max_value = 14,
386386
#'
387387
#' @description `r lifecycle::badge("deprecated")`
388388
#' Deprecated; use [stan_sampling_opts()] instead.
389+
#' @param ... Additional parameters to pass to [rstan::sampling()].
389390
#' @inheritParams stan_sampling_opts
390391
#' @return A list of arguments to pass to [rstan::sampling()].
391392
#' @export

R/opts.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,11 @@ obs_opts <- function(family = c("negbin", "poisson"),
606606
#'
607607
#' @inheritParams stan_opts
608608
#'
609-
#' @param ... Additional parameters to pass to [rstan::sampling()].
609+
#' @param ... Additional parameters to pass to [rstan::sampling()] or
610+
#' [cmdstanr::sample()].
610611
#' @importFrom utils modifyList
611612
#' @return A list of arguments to pass to [rstan::sampling()] or
612-
#' [cmdstanr::sample().
613+
#' [cmdstanr::sample()].
613614
#' @export
614615
#' @examples
615616
#' stan_sampling_opts(samples = 2000)

man/stan_sampling_opts.Rd

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)