Skip to content

Commit

Permalink
fix issue #1383
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Aug 12, 2022
1 parent 00c6f66 commit 7c69f05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Expand Up @@ -10,6 +10,7 @@ specified via `s(..., fx = TRUE)`.
* Fix problems with missing boundaries of `sdme` parameters in models
with known response standard errors thanks to Solomon Kurz. (#1348)
* Fix Stan code of `gamma` models with `softplus` link.
* Allow for more flexible data inputs to `brm_multiple`. (#1383)


# brms 2.17.0
Expand Down
3 changes: 2 additions & 1 deletion R/brm_multiple.R
Expand Up @@ -220,7 +220,8 @@ combine_models <- function(..., mlist = NULL, check_data = TRUE) {

# validity check for 'data' input of 'brm_multiple'
is_data_list <- function(x) {
is.list(x) && is.vector(x)
# see also issue #1383
is.list(x) && (is.vector(x) || all(vapply(x, is.data.frame, logical(1L))))
}

# validity check for 'data2' input of 'brm_multiple'
Expand Down

0 comments on commit 7c69f05

Please sign in to comment.