Skip to content

Commit

Permalink
Fix mb bug when provided c()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Kuschnig committed Sep 5, 2019
1 parent aad9094 commit 435f4f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/41_minnesota.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ lazy_priors <- function(x) {

if(!inherits(x, "bv_dummy")) {
# Allow receiving length 4 numeric vectors
if(length(x) == 4 && is.numeric(x)) {return(x = bv_lambda(x))}
if(length(x) == 4 && is.numeric(x)) {
return(x = bv_lambda(x[1], x[2], x[3], x[4]))
}
stop("Please use `bv_lambda()` / `bv_alpha()` to set lambda / alpha.")
}

Expand Down

0 comments on commit 435f4f5

Please sign in to comment.