diff --git a/R/update.R b/R/update.R index 3d4e81541..f7619412a 100644 --- a/R/update.R +++ b/R/update.R @@ -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)