Skip to content

Commit

Permalink
Merge branch '1187_decorate_output@main' into tm_a_mmrm@1187_decorate…
Browse files Browse the repository at this point in the history
…_output@main
  • Loading branch information
m7pr authored Dec 12, 2024
2 parents 68011c5 + 00c8c0b commit d428aae
Show file tree
Hide file tree
Showing 24 changed files with 243 additions and 33 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ jobs:
checking top-level files .* NOTE
unit-test-report-brand: >-
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/teal.png
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
Expand All @@ -61,6 +80,25 @@ jobs:
checking Rd .usage sections .* NOTE
checking for unstated dependencies in vignettes .* NOTE
checking top-level files .* NOTE
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
Expand All @@ -69,6 +107,25 @@ jobs:
with:
additional-env-vars: |
NOT_CRAN=true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
linter:
if: github.event_name != 'push'
name: SuperLinter 🦸‍♀️
Expand All @@ -80,6 +137,25 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
auto-update: true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,22 @@ jobs:
with:
default-landing-page: latest-tag
additional-unit-test-report-directories: unit-test-report-non-cran
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
77 changes: 77 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,51 @@ jobs:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
default-landing-page: latest-tag
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
validation:
name: R Package Validation report 📃
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/validation.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
with:
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
Expand All @@ -46,6 +85,25 @@ jobs:
checking top-level files .* NOTE
unit-test-report-brand: >-
https://raw.githubusercontent.com/insightsengineering/hex-stickers/main/thumbs/teal.png
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
coverage:
name: Coverage 📔
needs: [release, docs]
Expand All @@ -55,6 +113,25 @@ jobs:
with:
additional-env-vars: |
NOT_CRAN=true
deps-installation-method: setup-r-dependencies
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
insightsengineering/nestcolor
insightsengineering/roxy.shinylive
wasm:
name: Build WASM packages 🧑‍🏭
needs: release
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Scheduled 🕰️

on:
schedule:
- cron: '45 3 * * 0'
- cron: "45 3 * * 0"
workflow_dispatch:
inputs:
chosen-workflow:
Expand Down Expand Up @@ -56,6 +56,23 @@ jobs:
)
name: revdepcheck ↩️
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
with:
lookup-refs: |
insightsengineering/teal
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
rhub:
if: >
github.event_name == 'schedule' || (
Expand All @@ -70,12 +87,14 @@ jobs:
insightsengineering/teal.transform
insightsengineering/tern
insightsengineering/rlistings
insightsengineering/formatters
insightsengineering/rtables
insightsengineering/rtables.officer
insightsengineering/teal.code
insightsengineering/teal.data
insightsengineering/teal.logger
insightsengineering/teal.reporter
insightsengineering/teal.slice
insightsengineering/teal.widgets
insightsengineering/teal.slice
insightsengineering/tern.gee
insightsengineering/tern.mmrm
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: teal.modules.clinical
Title: 'teal' Modules for Standard Clinical Outputs
Version: 0.9.1.9038
Date: 2024-12-10
Version: 0.9.1.9040
Date: 2024-12-11
Authors@R: c(
person("Joe", "Zhu", , "[email protected]", role = c("aut", "cre")),
person("Jana", "Stoilova", , "[email protected]", role = "aut"),
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.modules.clinical 0.9.1.9038
# teal.modules.clinical 0.9.1.9040

### Enhancements
* Added `teal.logger` functionality for logging changes in shiny inputs in all modules.
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' * `pval`: p-value of the effect.
#' Note, the statistics `n_tot`, `or`, and `ci` are required.
#' @param riskdiff (`list`)\cr if a risk (proportion) difference column should be added, a list of settings to apply
#' within the column. See [control_riskdiff()] for details. If `NULL`, no risk difference column will be added.
#' within the column. See [tern::control_riskdiff()] for details. If `NULL`, no risk difference column will be added.
#' @param obj_var_name (`character`)\cr additional text to append to the table title.
#' @param responders (`character`)\cr values of `aval_var` that are considered to be responders.
#' @param col_symbol_size (`integer` or `NULL`)\cr column index to be used to determine relative size for
Expand Down
3 changes: 1 addition & 2 deletions R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,10 @@ template_adverse_events <- function(dataname = "ANL",
#' available choices and preselected option for the `ASTDY` variable from `dataname`.
#' @param decod ([teal.transform::choices_selected()])\cr object with all
#' available choices and preselected option for the `AEDECOD` variable from `dataname`.
#' @param decorators `r roxygen_decorators_param("tm_g_pp_adverse_events")`
#'
#' @inherit module_arguments return
#'
#' @section Decorating `tm_g_pp_adverse_events`:
#' @section Decorating Modules:
#'
#' This module generates the following objects, which can be modified in place using decorators::
#' - `plot` (`ggplot2`)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_coxreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' Creates a valid expression to generate a univariable Cox regression analysis.
#'
#' @inheritParams template_arguments
#' @param control (`list`)\cr list of settings for the analysis (see [control_coxreg()]).
#' @param control (`list`)\cr list of settings for the analysis (see [tern::control_coxreg()]).
#' @param at (`list` of `numeric`)\cr when the candidate covariate is a `numeric` type variable, use `at`
#' to specify the value of the covariate at which the effect should be estimated.
#' @param append (`logical`)\cr whether the result should be appended to the previous one.
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_events_by_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ srv_t_events_by_grade <- function(id,


table_renamed_q <- reactive({
within(table_q(), {table <- pruned_and_sorted_result})
within(table_q(), table <- pruned_and_sorted_result)
})

decorated_table_q <- srv_decorate_teal_data(
Expand Down
3 changes: 1 addition & 2 deletions R/tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,10 @@ template_exposure <- function(parentname,
#' parameter category values.
#' @param paramcd_label (`character`)\cr the column from the dataset where the value will be used to
#' label the argument `paramcd`.
#' @param decorators `r roxygen_decorators_param("tm_t_exposure")`
#'
#' @inherit module_arguments return seealso
#'
#' @section Decorating `tm_t_exposure`:
#' @section Decorating Modules:
#'
#' This module generates the following objects, which can be modified in place using decorators:
#' - `table` (`TableTree` as created from `rtables::build_table`)
Expand Down
8 changes: 4 additions & 4 deletions R/tm_t_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ template_tte <- function(dataname = "ANL",
#' pre-selected option for confidence level, each within range of (0, 1).
#' @param conf_level_survfit ([teal.transform::choices_selected()])\cr object with all available choices and
#' pre-selected option for confidence level, each within range of (0, 1).
#' @param event_desc_var (`character` or [data_extract_spec()])\cr variable name with the event description
#' information, optional.
#' @param event_desc_var (`character` or [teal.transform::data_extract_spec()])\cr variable name with the
#' event description information, optional.
#'
#' @section Decorating Module:
#'
Expand All @@ -396,8 +396,8 @@ template_tte <- function(dataname = "ANL",
#' `vignette("decorate-modules-output", package = "teal")` or the [`teal_transform_module()`] documentation.
#'
#' @details
#' * The core functionality of this module is based on [coxph_pairwise()], [surv_timepoint()], and [surv_time()] from
#' the `tern` package.
#' * The core functionality of this module is based on [tern::coxph_pairwise()], [tern::surv_timepoint()],
#' and [tern::surv_time()] from the `tern` package.
#' * The arm and stratification variables are taken from the `parentname` data.
#' * The following variables are used in the module:
#'
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ split_col_expr <- function(compare, combine, ref, arm_var) {
#'
#' @note uses the regex `\\*|:` to perform the split.
#'
#' @return a [choices_selected()] object.
#' @return a [teal.transform::choices_selected()] object.
#'
#' @examples
#' split_choices(choices_selected(choices = c("x:y", "a*b"), selected = all_choices()))
Expand Down
2 changes: 1 addition & 1 deletion man/split_choices.Rd

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

2 changes: 1 addition & 1 deletion man/template_coxreg_m.Rd

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

Loading

0 comments on commit d428aae

Please sign in to comment.