Skip to content

Commit

Permalink
Update error message when using rvar draws format
Browse files Browse the repository at this point in the history
closes #582
  • Loading branch information
jgabry committed Apr 17, 2024
1 parent ced35d1 commit 1a07f46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,9 @@ assert_valid_draws_format <- function(format) {
}
if (format %in% c("rvars", "draws_rvars")) {
stop(
"\nWe are fixing a bug in fit$draws(format = 'draws_rvars').",
"\nFor now please use posterior::as_draws_rvars(fit$draws()) instead."
"\nTo use the rvar format please convert after extracting the draws, ",
"e.g., posterior::as_draws_rvars(fit$draws()).",
call. = FALSE
)
}
}
Expand Down

0 comments on commit 1a07f46

Please sign in to comment.