Skip to content

Commit

Permalink
feat: also check that testthat is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Dec 19, 2024
1 parent 669420e commit 21bc010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 21bc010

Please sign in to comment.