From 21bc01051ae4337d234f2fc2ec8a70a45ec20dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:40:35 +0000 Subject: [PATCH] feat: also check that testthat is installed --- R/TealAppDriver.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/TealAppDriver.R b/R/TealAppDriver.R index e5a1f5b9a..f170e515a 100644 --- a/R/TealAppDriver.R +++ b/R/TealAppDriver.R @@ -10,7 +10,7 @@ TealAppDriver <- R6::R6Class( # nolint: object_name. "TealAppDriver", inherit = { - lapply(c("shinytest2", "rvest"), function(.x, use_testthat) { + lapply(c("testthat", "shinytest2", "rvest"), function(.x, use_testthat) { if (!requireNamespace(.x, quietly = TRUE)) { if (use_testthat) { testthat::skip(sprintf("%s is not installed", .x))