3838# ' * R_TESTME_PACKAGE
3939# ' * R_TESTME_NAME
4040# ' * R_TESTME_PATH
41- # ' * R_TESTME_FILTER_NAME
42- # ' * R_TESTME_FILTER_TAGS
41+ # ' * R_TESTME_FILTER_NAME:
42+ # " An R expression to be evaluated as TRUE
43+ # ' * R_TESTME_FILTER_TAGS:
44+ # ' An R expression to be evaluated as TRUE, e.g.
45+ # ' R_TESTME_FILTER_TAGS='"pkg-furrr" %in% tags'
4346# ' * R_TESTME_COVERAGE
4447# ' * R_TESTME_DEBUG
4548main <- function () {
@@ -213,8 +216,8 @@ main <- function() {
213216
214217 keep <- tryCatch(eval(expr , envir = testme ), error = identity )
215218 if (inherits(keep , " error" )) {
216- stop(" Evaluation of R_TESTME_FILTER_NAME=%s produced an error: %s" ,
217- sQuote(code ), conditionMessage(keep ))
219+ stop(sprintf( " Evaluation of R_TESTME_FILTER_NAME=%s produced an error: %s" ,
220+ sQuote(code ), conditionMessage(keep )))
218221 }
219222 if (! isTRUE(keep )) testme [[" status" ]] <- " skipped"
220223 }
@@ -227,8 +230,8 @@ main <- function() {
227230 }
228231 keep <- tryCatch(eval(expr , envir = testme ), error = identity )
229232 if (inherits(keep , " error" )) {
230- stop(" Evaluation of R_TESTME_FILTER_TAGS=%s produced an error: %s" ,
231- sQuote(code ), conditionMessage(keep ))
233+ stop(sprintf( " Evaluation of R_TESTME_FILTER_TAGS=%s produced an error: %s" ,
234+ sQuote(code ), conditionMessage(keep )))
232235 }
233236 if (! isTRUE(keep )) testme [[" status" ]] <- " skipped"
234237 }
0 commit comments