Skip to content

Commit

Permalink
Switch default to rstan rather than cmdstanr
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Nov 6, 2024
1 parent 6f84c3e commit ffec6b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' or related functions. These priors are passed to [epidist_prior()] in the
#' `prior` argument.
#' @param backend Character string naming the package to use as the backend for
#' fitting the Stan model. Options are `"rstan"` and `"cmdstanr"` (the default).
#' fitting the Stan model. Options are `"rstan"` and `"cmdstanr"`.
#' This option is passed directly through to `fn`.
#' @param fn The internal function to be called. By default this is
#' [brms::brm()] which performs inference for the specified model. Other options
Expand All @@ -38,7 +38,7 @@ epidist <- function(data, formula, family, prior, backend, fn, ...) {
#' @export
epidist.default <- function(data, formula = mu ~ 1,
family = "lognormal", prior = NULL,
backend = "cmdstanr", fn = brms::brm, ...) {
backend = "rstan", fn = brms::brm, ...) {
epidist_validate(data)
epidist_family <- epidist_family(data, family)
epidist_formula <- epidist_formula(
Expand Down
2 changes: 1 addition & 1 deletion man/epidist.Rd

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

4 changes: 2 additions & 2 deletions man/epidist.default.Rd

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

0 comments on commit ffec6b2

Please sign in to comment.