Skip to content

Commit

Permalink
handle backend correctly in opts
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Apr 24, 2024
1 parent 1f5f6c0 commit 0dd32d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/opts.R
Original file line number Diff line number Diff line change
Expand Up @@ -983,11 +983,13 @@ stan_opts <- function(object = NULL,
} else {
stop("`object` must be a stan model object")
}
} else {
backend <- arg_match(backend, values = c("rstan", "cmdstanr"))
opts <- c(opts, list(backend = backend))
}
opts <- c(opts, list(
object = object,
method = method,
backend = backend
method = method
))
if (method == "sampling") {
opts <- c(
Expand Down

0 comments on commit 0dd32d4

Please sign in to comment.