Skip to content

Commit

Permalink
update.brmsfit: better validate 'backend'
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Apr 6, 2021
1 parent 80dc972 commit 76fcc83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/update.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ update.brmsfit <- function(object, formula., newdata = NULL,
dots$control[names(control)] <- control

if (is.null(recompile)) {
dots$backend <- match.arg(dots$backend, backend_choices())
# only recompile if new and old stan code do not match
new_stancode <- suppressMessages(do_call(make_stancode, dots))
# stan code may differ just because of the version number (#288)
Expand Down

0 comments on commit 76fcc83

Please sign in to comment.