From 57e1b1616998ca13ee9960bc4b0039f70aa0646f Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Thu, 1 Feb 2024 17:03:50 +0100 Subject: [PATCH] explain opts_partial_match_old --- tests/testthat/setup-options.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testthat/setup-options.R b/tests/testthat/setup-options.R index 6c64473..78be1f9 100644 --- a/tests/testthat/setup-options.R +++ b/tests/testthat/setup-options.R @@ -1,3 +1,6 @@ +# `opts_partial_match_old` is left for exclusions due to partial matching in dependent packages (i.e. not fixable here) +# it might happen that it is not used right now, but it is left for possible future use +# use with: `withr::with_options(opts_partial_match_old, { ... })` inside the test opts_partial_match_old <- list( warnPartialMatchDollar = getOption("warnPartialMatchDollar"), warnPartialMatchArgs = getOption("warnPartialMatchArgs"),