Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 338_datanames_in_vign…
Browse files Browse the repository at this point in the history
…ettes
  • Loading branch information
gogonzo committed Dec 20, 2024
2 parents d420c31 + 997da60 commit 9fc3c80
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: teal
Title: Exploratory Web Apps for Analyzing Clinical Trials Data
Version: 0.15.2.9096
Date: 2024-12-19
Version: 0.15.2.9097
Date: 2024-12-20
Authors@R: c(
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-9533-457X")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# teal 0.15.2.9096
# teal 0.15.2.9097

### New features

Expand Down
15 changes: 9 additions & 6 deletions R/TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
TealAppDriver <- R6::R6Class( # nolint: object_name.
"TealAppDriver",
inherit = {
if (!requireNamespace("shinytest2", quietly = TRUE)) {
stop("Please install 'shinytest2' package to use this class.")
}
if (!requireNamespace("rvest", quietly = TRUE)) {
stop("Please install 'rvest' package to use this class.")
}
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))
} else {
stop("Please install '", .x, "' package to use this class.", call. = FALSE)
}
}
}, use_testthat = requireNamespace("testthat", quietly = TRUE) && testthat::is_testing())
shinytest2::AppDriver
},
# public methods ----
Expand Down

0 comments on commit 9fc3c80

Please sign in to comment.