Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip vbump] upversion to 0.16.0 #1492

Merged
merged 8 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: teal
Title: Exploratory Web Apps for Analyzing Clinical Trials Data
Version: 0.15.2.9131
Version: 0.16.0
Date: 2025-02-12
Authors@R: c(
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre"),
Expand Down Expand Up @@ -50,8 +50,8 @@ Imports:
rlang (>= 1.0.0),
shinyjs,
stats,
teal.code (>= 0.6.0),
teal.logger (>= 0.3.1),
teal.code (>= 0.6.1),
teal.logger (>= 0.3.2),
teal.reporter (>= 0.4.0),
teal.widgets (>= 0.4.3),
tools,
Expand Down
16 changes: 8 additions & 8 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# teal 0.15.2.9131
# teal 0.16.0

### New features

* Possible to call `ui_teal` and `srv_teal` directly in any application by delivering `data` argument as a `reactive` returning `teal_data` object. #669
* Since introduction of `ui_teal` and `srv_teal` functions `id` argument in `init` is being deprecated. #1438
* Possible to call `ui_teal` and `srv_teal` directly in any application by delivering `data` argument as a `reactive` returning `teal_data` object (#669).
* Since introduction of `ui_teal` and `srv_teal` functions, the `id` argument in `init` is being deprecated (#1438).
* Introduce `ui_session_info` and `srv_session_info` shiny module to create the user session info and teal app lockfile download button.
* Introduced `teal_transform_module` to provide a way to interactively modify data delivered to `teal_module`'s `server` and to decorate module outputs. #1228 #1384
* Introduced `teal_transform_module` to provide a way to interactively modify data delivered to `teal_module`'s `server` and to decorate module outputs, along with a vignette to demonstrate its usage (#1228, #1384).
* Introduced a new argument `once = FALSE` in `teal_data_module` to possibly reload data during a run time.
* Possibility to download lockfile to restore app session for reproducibility. #479
* Possibility to download lockfile to restore app session for reproducibility (#479).
* Datasets which name starts with `.` are ignored when `module`'s `datanames` is set as `"all"`.
* Added warning when reserved `datanames`, such as `all` and `.raw_data` are being used.
* Added warning when reserved `datanames`, such as `all` and `.raw_data` are being used.
* Added `add_custom_server()` to allow adding custom server logic to the main shiny server function of a teal app.

### Breaking changes

* Setting `datanames()` on `data` passed to teal application no longer has effect. In order to change `teal_module`'s
* Setting `datanames()` on `data` passed to teal application no longer has effect. In order to change `teal_module`'s
`datanames` one should modify `module$datanames`.
* `landing_popup_module()` is deprecated. Please use `add_landing_modal()` function to add a landing popup for your teal application.
* `teal` no longer re-export `%>%`. Please load `library(magrittr)` instead or use `|>` from `base`.
Expand All @@ -24,7 +24,7 @@
### Enhancement

* Enhanced a system of data validation and a display of error messages.
* Easier way of to call `javascript` events by setting `$(document).ready(function() { ... })`. #1114
* Easier way of to call `javascript` events by setting `$(document).ready(function() { ... })` (#1114).
* Provided progress bar for modules loading and data filtering during teal app startup.
* Filter mapping display has a separate icon in the tab.
* Environment of the `data` passed to the `teal_module`'s server consists unfiltered datasets contained in `.raw_data`.
Expand Down
2 changes: 2 additions & 0 deletions R/dummy_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,5 @@ example_module <- function(label = "example teal module",
attr(ans, "teal_bookmarkable") <- TRUE
ans
}

globalVariables("dataname")
24 changes: 10 additions & 14 deletions R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,17 @@
#' the browser window title. Defaults to a title "teal app" with the icon of NEST.
#' Can be created using the `build_app_title()` or
#' by passing a valid `shiny.tag` which is a head tag with title and link tag.
#' This parameter is deprecated. Use `modify_title()` on the teal app object instead.
#' This parameter is no longer supported. Use `modify_title()` on the teal app object instead.
#' @param header (`shiny.tag` or `character(1)`) `r lifecycle::badge("deprecated")` Optionally,
#' the header of the app.
#' This parameter is deprecated. Use `modify_header()` on the teal app object instead.
#' This parameter is no longer supported. Use `modify_header()` on the teal app object instead.
#' @param footer (`shiny.tag` or `character(1)`) `r lifecycle::badge("deprecated")` Optionally,
#' the footer of the app.
#' This parameter is deprecated. Use `modify_footer()` on the teal app object instead.
#' This parameter is no longer supported. Use `modify_footer()` on the teal app object instead.
#' @param id `r lifecycle::badge("deprecated")` (`character`) Optionally,
#' a string specifying the `shiny` module id in cases it is used as a `shiny` module
#' rather than a standalone `shiny` app. This is a legacy feature. Deprecated since v0.15.3
#' please use [ui_teal()] and [srv_teal()] instead.
#' @param id `r lifecycle::badge("deprecated")` (`character`) Optionally,
#' a string specifying the `shiny` module id in cases it is used as a `shiny` module
#' rather than a standalone `shiny` app. This is a legacy feature. Deprecated since v0.15.3
#' please use [ui_teal()] and [srv_teal()] instead.
#' rather than a standalone `shiny` app.
#' This parameter is no longer supported. Use [ui_teal()] and [srv_teal()] instead.
#'
#' @return Named list containing server and UI functions.
#'
Expand Down Expand Up @@ -190,7 +186,7 @@ init <- function(data,

if (lifecycle::is_present(id)) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "init(id)",
details = paste(
"To wrap `teal` application within other shiny application please use",
Expand Down Expand Up @@ -244,7 +240,7 @@ init <- function(data,

if (lifecycle::is_present(title)) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "init(title)",
details = paste(
"Use `modify_title()` on the teal app object instead.",
Expand All @@ -256,7 +252,7 @@ init <- function(data,
}
if (lifecycle::is_present(header)) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "init(header)",
details = paste(
"Use `modify_header()` on the teal app object instead.",
Expand All @@ -268,7 +264,7 @@ init <- function(data,
}
if (lifecycle::is_present(footer)) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "init(footer)",
details = paste(
"Use `modify_footer()` on the teal app object instead.",
Expand All @@ -281,7 +277,7 @@ init <- function(data,

if (length(landing) == 1L) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "landing_popup_module()",
details = paste(
"`landing_popup_module()` is deprecated.",
Expand Down
2 changes: 1 addition & 1 deletion R/landing_popup_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ landing_popup_module <- function(label = "Landing Popup",
content = NULL,
buttons = modalButton("Accept")) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "landing_popup_module()",
details = paste(
"landing_popup_module() is deprecated.",
Expand Down
6 changes: 3 additions & 3 deletions R/module_teal_with_splash.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ui_teal_with_splash <- function(id,
header = tags$p(),
footer = tags$p()) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "ui_teal_with_splash()",
details = "Deprecated, please use `?ui_teal` instead"
details = "Please use `?ui_teal` instead"
)
ns <- shiny::NS(id)
fluidPage(
Expand Down Expand Up @@ -53,7 +53,7 @@ ui_teal_with_splash <- function(id,
#' @rdname module_teal_with_splash
srv_teal_with_splash <- function(id, data, modules, filter = teal_slices()) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "srv_teal_with_splash()",
details = "Deprecated, please use `?srv_teal` instead"
)
Expand Down
2 changes: 1 addition & 1 deletion R/show_rcode_modal.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' @export
show_rcode_modal <- function(title = NULL, rcode, session = getDefaultReactiveDomain()) {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "show_rcode_modal()",
details = "This function will be removed in the next release."
)
Expand Down
2 changes: 1 addition & 1 deletion R/tdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ as_tdata <- function(...) {

.deprecate_tdata_msg <- function() {
lifecycle::deprecate_stop(
when = "0.15.3",
when = "0.16.0",
what = "tdata()",
details = paste(
"tdata has been removed in favour of `teal_data`.\n",
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ build_app_title <- function(
title = "teal app",
favicon = "https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/PNG/nest.png") {
lifecycle::deprecate_soft(
when = "0.15.3",
when = "0.16.0",
what = "build_app_title()",
details = "Use `modify_title()` on the object created using the `init`."
)
Expand Down
10 changes: 5 additions & 5 deletions man/init.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/module_teal_with_splash.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pkg_name <- "teal"
library(pkg_name, character.only = TRUE)
testthat::test_check(pkg_name)
unlink(".renv")
unlink("BiocManager")
Loading