From 3c86e64589e5f6f2652468b199034130d7115f10 Mon Sep 17 00:00:00 2001 From: rdinter-usda <82044401+rdinter-usda@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:19:08 -0400 Subject: [PATCH] Update testing-advanced.Rmd creating function should not attempt to call the function --- testing-advanced.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing-advanced.Rmd b/testing-advanced.Rmd index 76bc2f4bd..425a309a0 100644 --- a/testing-advanced.Rmd +++ b/testing-advanced.Rmd @@ -287,7 +287,7 @@ In short, there are times when, instead of getting a failure, you just want to s Here we use `testthat::skip()` to write a hypothetical custom skipper, `skip_if_no_api()`: ```{r, eval = FALSE} -skip_if_no_api() <- function() { +skip_if_no_api <- function() { if (api_unavailable()) { skip("API not available") }