Skip to content

Commit 4274680

Browse files
authored
[skip vbump] Release candidate v1.1.0 (#1649)
# Pull Request <!--- Replace `#nnn` with your issue link for reference. --> Fixes #1613 --------- Signed-off-by: Lluís Revilla <185338939+llrs-roche@users.noreply.github.com>
1 parent 7ee86b3 commit 4274680

File tree

11 files changed

+40
-46
lines changed

11 files changed

+40
-46
lines changed

DESCRIPTION

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: teal
33
Title: Exploratory Web Apps for Analyzing Clinical Trials Data
4-
Version: 1.0.0.9023
5-
Date: 2025-11-14
4+
Version: 1.1.0
5+
Date: 2025-11-17
66
Authors@R: c(
77
person("Dawid", "Kaledkowski", , "dawid.kaledkowski@roche.com", role = c("aut", "cre"),
88
comment = c(ORCID = "0000-0001-9533-457X")),
@@ -55,7 +55,7 @@ Imports:
5555
stats,
5656
teal.code (>= 0.7.0),
5757
teal.logger (>= 0.4.0),
58-
teal.reporter (>= 0.5.0.9001),
58+
teal.reporter (>= 0.6.0),
5959
teal.widgets (>= 0.5.0),
6060
tools,
6161
utils
@@ -79,8 +79,6 @@ VignetteBuilder:
7979
rmarkdown
8080
RdMacros:
8181
lifecycle
82-
Remotes:
83-
insightsengineering/teal.reporter@main
8482
Config/Needs/verdepcheck: rstudio/shiny, insightsengineering/teal.data,
8583
insightsengineering/teal.slice, mllg/checkmate, jeroen/jsonlite,
8684
r-lib/lifecycle, daroczig/logger, r-lib/mirai, r-lib/cli,

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# teal 1.0.0.9023
1+
# teal 1.1.0
22

33
### Deprecations and removals
44

R/modules.R

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ module <- function(label = "module",
166166
call. = FALSE
167167
)
168168
}
169-
if (label == "Report previewer") {
169+
if (label == "Report Previewer") {
170170
stop(
171171
sprintf("module(label = \"%s\", ...\n ", label),
172-
"Label 'Report previewer' is reserved in teal. Please change to something else.",
172+
"Label 'Report Previewer' is reserved in teal. Please change to something else.",
173173
call. = FALSE
174174
)
175175
}
@@ -339,11 +339,12 @@ modules <- function(..., label = character(0)) {
339339
#' cat(format(mod))
340340
#' @export
341341
format.teal_module <- function(
342-
x,
343-
is_last = FALSE,
344-
parent_prefix = "",
345-
what = c("datasets", "properties", "ui_args", "server_args", "decorators", "transformators"),
346-
...) {
342+
x,
343+
is_last = FALSE,
344+
parent_prefix = "",
345+
what = c("datasets", "properties", "ui_args", "server_args", "decorators", "transformators"),
346+
...
347+
) {
347348
empty_text <- ""
348349
branch <- if (is_last) "L-" else "|-"
349350
current_prefix <- paste0(parent_prefix, branch, " ")
@@ -443,13 +444,13 @@ format.teal_module <- function(
443444
#' @rdname teal_modules
444445
#' @examples
445446
#' custom_module <- function(
446-
#' label = "label", ui_args = NULL, server_args = NULL,
447-
#' datanames = "all", transformators = list(), bk = FALSE) {
447+
#' label = "label", ui_args = NULL, server_args = NULL,
448+
#' datanames = "all", transformators = list(), bk = FALSE
449+
#' ) {
448450
#' ans <- module(
449451
#' label,
450452
#' server = function(id, data, ...) {},
451-
#' ui = function(id, ...) {
452-
#' },
453+
#' ui = function(id, ...) {},
453454
#' datanames = datanames,
454455
#' transformators = transformators,
455456
#' ui_args = ui_args,

R/reporter_previewer_module.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' `teal_module` (extended with `teal_module_previewer` class) containing the `teal.reporter` previewer functionality.
1919
#'
2020
#' @export
21-
reporter_previewer_module <- function(label = "Report previewer", server_args = list()) {
21+
reporter_previewer_module <- function(label = "Report Previewer", server_args = list()) {
2222
checkmate::assert_string(label)
2323
checkmate::assert_list(server_args, names = "named")
2424
checkmate::assert_true(all(names(server_args) %in% names(formals(teal.reporter::reporter_previewer_srv))))
@@ -51,7 +51,7 @@ reporter_previewer_module <- function(label = "Report previewer", server_args =
5151
server_args = server_args, ui_args = list(), datanames = NULL
5252
)
5353
# Module is created with a placeholder label and path and both are changed later.
54-
# This is to prevent another module being labeled "Report previewer".
54+
# This is to prevent another module being labeled "Report Previewer".
5555
class(module) <- c(class(module), "teal_module_previewer")
5656
module$label <- label
5757
module$path <- label

R/teal_modifiers.R

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ teal_replace_ui <- function(x, selector, element) {
4747
#' shinyApp(app$ui, app$server)
4848
#' }
4949
modify_title <- function(
50-
x,
51-
title = "teal app",
52-
favicon = NULL) {
50+
x,
51+
title = "teal app",
52+
favicon = NULL
53+
) {
5354
checkmate::assert_multi_class(x, "teal_app")
5455
checkmate::assert_multi_class(title, c("shiny.tag", "shiny.tag.list", "html", "character"))
5556
checkmate::assert_string(favicon, null.ok = TRUE)
@@ -146,11 +147,12 @@ modify_footer <- function(x, element = tags$p()) {
146147
#' shinyApp(app$ui, app$server)
147148
#' }
148149
add_landing_modal <- function(
149-
x,
150-
title = NULL,
151-
content = NULL,
152-
footer = modalButton("Accept"),
153-
...) {
150+
x,
151+
title = NULL,
152+
content = NULL,
153+
footer = modalButton("Accept"),
154+
...
155+
) {
154156
checkmate::assert_class(x, "teal_app")
155157
custom_server <- function(input, output, session) {
156158
checkmate::assert_string(title, null.ok = TRUE)

R/utils.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@ validate_app_title_tag <- function(shiny_tag) {
315315
#' @return A `shiny.tag` containing the element that adds the title and logo to the `shiny` app.
316316
#' @export
317317
build_app_title <- function(
318-
title = "teal app",
319-
favicon = "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png") {
318+
title = "teal app",
319+
favicon = "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png"
320+
) {
320321
lifecycle::deprecate_soft(
321322
when = "0.16.0",
322323
what = "build_app_title()",

man/reporter_previewer_module.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/teal_modules.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-modules.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
call_module_server_fun <- function(input, output, session, data) {
2-
}
1+
call_module_server_fun <- function(input, output, session, data) {}
32

4-
module_server_fun <- function(id, data) {
5-
}
3+
module_server_fun <- function(id, data) {}
64

75
ui_fun1 <- function(id, ...) {
86
tags$p(paste0("id: ", id))

tests/testthat/test-reporter_previewer_module.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ testthat::describe("reporter_previewer_module", {
1010

1111
testthat::it("uses default label", {
1212
module <- reporter_previewer_module()
13-
testthat::expect_equal(module$label, "Report previewer")
14-
testthat::expect_equal(module$path, "Report previewer")
13+
testthat::expect_equal(module$label, "Report Previewer")
14+
testthat::expect_equal(module$path, "Report Previewer")
1515
})
1616

1717
testthat::it("throws error when label is not a string", {

0 commit comments

Comments
 (0)