From 1a07f461361fc938dd805051119d30698e5be73e Mon Sep 17 00:00:00 2001 From: jgabry Date: Wed, 17 Apr 2024 12:21:10 -0600 Subject: [PATCH] Update error message when using rvar draws format closes #582 --- R/utils.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/R/utils.R b/R/utils.R index 9764ec36..ca1ae550 100644 --- a/R/utils.R +++ b/R/utils.R @@ -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 ) } }