From 5f8935653e5e3d64cf344a096f19d5e1f407fce3 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Fri, 14 Jul 2023 18:59:33 -0500 Subject: [PATCH 1/9] try readr for `checbox_choices()` ref #500 --- R/metadata-utilities.R | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/R/metadata-utilities.R b/R/metadata-utilities.R index 0d4a2f4b..b99a8a4d 100644 --- a/R/metadata-utilities.R +++ b/R/metadata-utilities.R @@ -114,7 +114,12 @@ regex_named_captures <- function(pattern, text, perl = TRUE) { checkbox_choices <- function(select_choices) { checkmate::assert_character(select_choices, any.missing=FALSE, len=1, min.chars=1) - pattern_checkboxes <- "(?<=\\A| \\| |\\| )(?\\d{1,}), (?