Skip to main content

ARG_CHECK_HELPERS

Constant ARG_CHECK_HELPERS 

Source
#[doc(hidden)]
pub const ARG_CHECK_HELPERS: [&str; 3];
Expand description

R source blocks for the argument-check helpers of the wrappers preamble, .miniextendr_arg_error, .miniextendr_match_arg_several and .miniextendr_match_arg, with their comment blocks, as written by write_r_wrappers_to_file (they read .miniextendr_conversion_error_class, bound after them, and .miniextendr_frame_call, bound before). Each block is emitted only when needed; this ordered array lets the equivalence tests evaluate the same source as the wrapper writer.

.miniextendr_match_arg’s messages are the ones crate::match_arg::match_arg_param and the generated conversion of a match_arg type word in Rust (#1767): all take their words from match_arg::match_arg_wording!, and the API tests (miniextendr-api/tests/match_arg_param.rs) evaluate this source and compare them on every input class (#1741).

History, kept here because the R comments ship in every package and cite no PR numbers (#1832): .miniextendr_arg_error is #1591, the call argument a call = caller wrapper passes is #1548, the frame an S3 method passes there and the NULL of call = none are #1851, the strict several_ok match is #1472, reading a factor as its labels is #1552, the aliases argument (match_arg_aliases_arg) is #1843, and the listed argument, the clause naming the listed aliases, is #2148.