From 281663b731d4ae83a7cc332c68e57821c068a692 Mon Sep 17 00:00:00 2001 From: Shawn Garbett Date: Wed, 26 Nov 2025 11:01:06 -0600 Subject: [PATCH] Reversed set assert message for clarity when dealing with long sets and R line truncation --- R/helper.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/helper.R b/R/helper.R index 7bcdca6a..a8110400 100644 --- a/R/helper.R +++ b/R/helper.R @@ -64,8 +64,8 @@ check_subset_internal = function(x, choices, match, what = NULL) { ii = match(x, choices) if (anyMissing(ii)) { return(set_msg( - "must be a subset of %s, but has additional elements %s", - what, set_collapse(choices), set_collapse(x[is.na(ii)]) + "has additional elements %s, but must be a subset of %s", + what, set_collapse(x[is.na(ii)]), set_collapse(choices) )) } }